8000 [FW][FIX] base_vat: correct the check and the reference of Israeli VAT numbers by fw-bot · Pull Request #173858 · odoo/odoo · GitHub
[go: up one dir, main page]

Skip to content

[FW][FIX] base_vat: correct the check and the reference of Israeli VAT numbers #173858

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

Conversation

fw-bot
Copy link
Contributor
@fw-bot fw-bot commented Jul 19, 2024

Issue:

The reference displayed when entering a non valid VAT number for Israel is incorrect. And the check used is not the right one.

Steps to reproduce:

  • In app Contact, create a new one
  • Select Israel as country and enter a non-valid VAT number
  • The default ref is displayed: 'CC##' (CC=Country Code, ##=VAT Number)
  • And the number 039225313 should be accepted

Cause:

he check used by the library stdnum is not up-to-date.
There is a PR to modify the library stdnum: https://github.com/arthurdejong/python-stdnum/ PR436 as the law has changed. Before only corporations could have a VAT number, now individuals can also have one.

Solution:

Use the right check (tdnum.il.idnr), which is available in the library stdnum.

opw-3954674

Forward-Port-Of: #173767
Forward-Port-Of: #172760

Issue:
The reference displayed when entering a non valid VAT number for Israel is incorrect. And the check used is not the right one.

Steps to reproduce:
- In app Contact, create a new one
- Select Israel as country and enter a non valid VAT number
- The default ref is displayed: 'CC##' (CC=Country Code, ##=VAT Number)
- And the number 039225313 should be accepted

Cause:
The check used by the library stdnum is not up to date.
There is a PR to modify the library stdnum: https://github.com/arthurdejong/python-stdnum/ PR436 as the law has changed. Before only corporations could have a VAT number, now individuals can also have one.
The new regulations give different formats for comanies and individuals.

Solution:
Use the right check (tdnum.il.idnr) for individuals, which is available in the library stdnum.

opw-395467

X-original-commit: b05e203
@robodoo
Copy link
Contributor
robodoo commented Jul 19, 2024

Pull request status dashboard

@fw-bot
Copy link
Contributor Author
fw-bot commented Jul 19, 2024

This PR targets saas-17.2 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Jul 19, 2024
@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Jul 19, 2024
robodoo pushed a commit that referenced this pull request Jul 19, 2024
Issue:
The reference displayed when entering a non valid VAT number for Israel is incorrect. And the check used is not the right one.

Steps to reproduce:
- In app Contact, create a new one
- Select Israel as country and enter a non valid VAT number
- The default ref is displayed: 'CC##' (CC=Country Code, ##=VAT Number)
- And the number 039225313 should be accepted

Cause:
The check used by the library stdnum is not up to date.
There is a PR to modify the library stdnum: https://github.com/arthurdejong/python-stdnum/ PR436 as the law has changed. Before only corporations could have a VAT number, now individuals can also have one.
The new regulations give different formats for comanies and individuals.

Solution:
Use the right check (tdnum.il.idnr) for individuals, which is available in the library stdnum.

opw-395467

closes #173858

X-original-commit: b05e203
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
Signed-off-by: Mathieu Coutant (mcou) <mcou@odoo.com>
robodoo pushed a commit that referenced this pull request Jul 20, 2024
Issue:
The reference displayed when entering a non valid VAT number for Israel is incorrect. And the check used is not the right one.

Steps to reproduce:
- In app Contact, create a new one
- Select Israel as country and enter a non valid VAT number
- The default ref is displayed: 'CC##' (CC=Country Code, ##=VAT Number)
- And the number 039225313 should be accepted

Cause:
The check used by the library stdnum is not up to date.
There is a PR to modify the library stdnum: https://github.com/arthurdejong/python-stdnum/ PR436 as the law has changed. Before only corporations could have a VAT number, now individuals can also have one.
The new regulations give different formats for comanies and individuals.

Solution:
Use the right check (tdnum.il.idnr) for individuals, which is available in the library stdnum.

opw-395467

closes #173858

X-original-commit: b05e203
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
Signed-off-by: Mathieu Coutant (mcou) <mcou@odoo.com>
@robodoo robodoo closed this Jul 20, 2024
@fw-bot fw-bot deleted the saas-17.2-16.0-opw-3954674-add_vat_ref_for_israel-mcou-79Xu-fw branch August 3, 2024 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forwardport This PR was created by @fw-bot OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0