-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Brexit and Northern Ireland: new VAT numbers starting with XI #64891
Comments
Support for VAT numbers starting with XI has been added in stdnum lib tonight. If you update stdnum to the master branch and you create a partner with the VAT number of my screenshot and country = United Kingdom, it will be accepted. It seems to me that the code in base_vat needs a serious cleanup. I already opened another bug report about VIES check which doesn't work in v14 cf #64897
Maybe this cleanup would be an opportunity to simplify the code and use stdnum.vatin which is designed to check VAT numbers for all countries:
|
OPW |
FYI, as you can see in the latest comments on this PR arthurdejong/python-stdnum#251, a new "Bexit-compliant" release of stdnum will be made on pypi in the coming days. This release will have support for the XI VAT numbers. |
FYI, stdnum 1.16 has been released today with support for the new XI VAT numbers of Northern Ireland https://pypi.org/project/python-stdnum/1.16/ I tested this new release of stdnum and it works fine. |
I've asked Odoo to update their packaging etc :) Looks like a lot of Odoo installs will need a |
Until then, we should patch it in |
Following Brexit on January 1st 2021, companies in Northern Ireland have a new VAT number starting with XI instead of GB. More info: https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business stdnum support the new XI VAT from 1.16 arthurdejong/python-stdnum@b93d695 This patch add temporary support in base_vat until the new version is available on the Debian package repository Community tracked issue odoo#64891 opw-2461322
Following Brexit on January 1st 2021, companies in Northern Ireland have a new VAT number starting with XI instead of GB. More info: https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business stdnum support the new XI VAT from 1.16 arthurdejong/python-stdnum@b93d695 This patch add temporary support in base_vat until the new version is available on the Debian package repository Community tracked issue odoo#64891 opw-2461322
Following Brexit on January 1st 2021, companies in Northern Ireland have a new VAT number starting with XI instead of GB. More info: https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business stdnum support the new XI VAT from 1.16 arthurdejong/python-stdnum@b93d695 This patch add temporary support in base_vat until the new version is available on the Debian package repository Community tracked issue #64891 opw-2461322 closes #67064 Signed-off-by: William André (wan) <wan@odoo.com>
Following Brexit on January 1st 2021, companies in Northern Ireland have a new VAT number starting with XI instead of GB. More info: https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business stdnum support the new XI VAT from 1.16 arthurdejong/python-stdnum@b93d695 This patch add temporary support in base_vat until the new version is available on the Debian package repository Community tracked issue odoo#64891 opw-2461322 X-original-commit: 5d0fb2f
Following Brexit on January 1st 2021, companies in Northern Ireland have a new VAT number starting with XI instead of GB. More info: https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business stdnum support the new XI VAT from 1.16 arthurdejong/python-stdnum@b93d695 This patch add temporary support in base_vat until the new version is available on the Debian package repository Community tracked issue odoo#64891 opw-2461322 X-original-commit: 5d0fb2f
Following Brexit on January 1st 2021, companies in Northern Ireland have a new VAT number starting with XI instead of GB. More info: https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business stdnum support the new XI VAT from 1.16 arthurdejong/python-stdnum@b93d695 This patch add temporary support in base_vat until the new version is available on the Debian package repository Community tracked issue odoo#64891 opw-2461322 X-original-commit: 5d0fb2f
Following Brexit on January 1st 2021, companies in Northern Ireland have a new VAT number starting with XI instead of GB. More info: https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business stdnum support the new XI VAT from 1.16 arthurdejong/python-stdnum@b93d695 This patch add temporary support in base_vat until the new version is available on the Debian package repository Community tracked issue odoo#64891 opw-2461322 X-original-commit: 5d0fb2f
Following Brexit on January 1st 2021, companies in Northern Ireland have a new VAT number starting with XI instead of GB. More info: https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business stdnum support the new XI VAT from 1.16 arthurdejong/python-stdnum@b93d695 This patch add temporary support in base_vat until the new version is available on the Debian package repository Community tracked issue odoo#64891 opw-2461322 X-original-commit: 5d0fb2f
Following Brexit on January 1st 2021, companies in Northern Ireland have a new VAT number starting with XI instead of GB. More info: https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business stdnum support the new XI VAT from 1.16 arthurdejong/python-stdnum@b93d695 This patch add temporary support in base_vat until the new version is available on the Debian package repository Community tracked issue odoo#64891 opw-2461322 X-original-commit: 5d0fb2f
Following Brexit on January 1st 2021, companies in Northern Ireland have a new VAT number starting with XI instead of GB. More info: https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business stdnum support the new XI VAT from 1.16 arthurdejong/python-stdnum@b93d695 This patch add temporary support in base_vat until the new version is available on the Debian package repository Community tracked issue #64891 opw-2461322 closes #67083 X-original-commit: 5d0fb2f Signed-off-by: William André (wan) <wan@odoo.com> Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
Following Brexit on January 1st 2021, companies in Northern Ireland have a new VAT number starting with XI instead of GB. More info: https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business stdnum support the new XI VAT from 1.16 arthurdejong/python-stdnum@b93d695 This patch add temporary support in base_vat until the new version is available on the Debian package repository Community tracked issue #64891 opw-2461322 closes #67091 X-original-commit: 5d0fb2f Signed-off-by: William André (wan) <wan@odoo.com> Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
Following Brexit on January 1st 2021, companies in Northern Ireland have a new VAT number starting with XI instead of GB. More info: https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business stdnum support the new XI VAT from 1.16 arthurdejong/python-stdnum@b93d695 This patch add temporary support in base_vat until the new version is available on the Debian package repository Community tracked issue odoo#64891 opw-2461322 X-original-commit: 049ea81
Following Brexit on January 1st 2021, companies in Northern Ireland have a new VAT number starting with XI instead of GB. More info: https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business stdnum support the new XI VAT from 1.16 arthurdejong/python-stdnum@b93d695 This patch add temporary support in base_vat until the new version is available on the Debian package repository Community tracked issue #64891 opw-2461322 closes #67402 X-original-commit: 049ea81 Signed-off-by: William André (wan) <wan@odoo.com> Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
Following Brexit on January 1st 2021, companies in Northern Ireland have a new VAT number starting with XI instead of GB. More info: https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business stdnum support the new XI VAT from 1.16 arthurdejong/python-stdnum@b93d695 This patch add temporary support in base_vat until the new version is available on the Debian package repository Community tracked issue odoo#64891 opw-2461322 X-original-commit: 7e7d873
Following Brexit on January 1st 2021, companies in Northern Ireland have a new VAT number starting with XI instead of GB. More info: https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business stdnum support the new XI VAT from 1.16 arthurdejong/python-stdnum@b93d695 This patch add temporary support in base_vat until the new version is available on the Debian package repository Community tracked issue odoo#64891 opw-2461322 X-original-commit: 7e7d873
Following Brexit on January 1st 2021, companies in Northern Ireland have a new VAT number starting with XI instead of GB. More info: https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business stdnum support the new XI VAT from 1.16 arthurdejong/python-stdnum@b93d695 This patch add temporary support in base_vat until the new version is available on the Debian package repository Community tracked issue odoo#64891 opw-2461322 X-original-commit: 7e7d873
Following Brexit on January 1st 2021, companies in Northern Ireland have a new VAT number starting with XI instead of GB. More info: https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business stdnum support the new XI VAT from 1.16 arthurdejong/python-stdnum@b93d695 This patch add temporary support in base_vat until the new version is available on the Debian package repository Community tracked issue #64891 opw-2461322 closes #67473 X-original-commit: 7e7d873 Signed-off-by: William André (wan) <wan@odoo.com> Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
Following Brexit on January 1st 2021, companies in Northern Ireland have a new VAT number starting with XI instead of GB. More info: https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business stdnum support the new XI VAT from 1.16 arthurdejong/python-stdnum@b93d695 This patch add temporary support in base_vat until the new version is available on the Debian package repository Community tracked issue #64891 opw-2461322 closes #67472 X-original-commit: 7e7d873 Signed-off-by: William André (wan) <wan@odoo.com> Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
Following Brexit on January 1st 2021, companies in Northern Ireland have a new VAT number starting with XI instead of GB. More info: https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business stdnum support the new XI VAT from 1.16 arthurdejong/python-stdnum@b93d695 This patch add temporary support in base_vat until the new version is available on the Debian package repository Community tracked issue #64891 opw-2461322 closes #67467 X-original-commit: 7e7d873 Signed-off-by: William André (wan) <wan@odoo.com> Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
Following Brexit on January 1st 2021, companies in Northern Ireland have a new VAT number starting with XI instead of GB. More info: https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business stdnum support the new XI VAT from 1.16 arthurdejong/python-stdnum@b93d695 This patch add temporary support in base_vat until the new version is available on the Debian package repository Community tracked issue odoo#64891 opw-2461322 closes odoo#67064 Signed-off-by: William André (wan) <wan@odoo.com> (cherry picked from commit 5d0fb2f)
Following Brexit on January 1st 2021, companies in Northern Ireland have a new VAT number starting with XI instead of GB. More info: https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business stdnum support the new XI VAT from 1.16 arthurdejong/python-stdnum@b93d695 This patch add temporary support in base_vat until the new version is available on the Debian package repository Community tracked issue odoo#64891 opw-2461322 closes odoo#67402 X-original-commit: 049ea81 Signed-off-by: William André (wan) <wan@odoo.com> Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
Following Brexit on January 1st 2021, companies in Northern Ireland have a new VAT number starting with XI instead of GB. More info: https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business
Tested on runbot v14: when I create a new company with country = United Kingdom and VAT number starting with XI, i get an error "The VAT number [XI.......] for partner [.......] does not seem to be valid. Note: the expected format is GB123456782".
For my test, I used the following VAT number which is considered valid by VIES:
I also opened a bug on python-stdnum about this, cf arthurdejong/python-stdnum#250
The text was updated successfully, but these errors were encountered: