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
[FIX] l10n_id: adapt the check to the new VAT regulation #157885
Conversation
Hello, sorry, but fix has an error: I don't also see the PO @tsb-odoo being asked whether removing the leading Probably |
The issue: Currently, in Indonesia, the regulation for tax ID is 15 digits. But a new regulation is coming where Tax ID is now 16 digits by adding 0 in front The fix: Remove the first zero and leave the rest for the _run_vat_test function Related PR: odoo#146111 opw-3782636
79643ac
to
da8e392
Compare
Hello @lordkrandel , thank you for your review and help on this PR, I've made new changes and it should work now, could you please have a look? |
Well, this PR really shortened, didn't it 😅 There's an ugly line just before your change: It should be: if len(vat) not in (15, 16) or not vat.is_decimal(): but maybe it's not worth the diff at the moment. @qdp-odoo for final review. |
Hello @qdp-odoo , would you mind please looking at this PR when you are available? Thanks :) |
@robodoo r+ |
Thank you @qdp-odoo ! 🤝 |
@amay-odoo @qdp-odoo this pull request has forward-port PRs awaiting action (not merged or closed): |
The issue: Currently, in Indonesia, the regulation for tax ID is 15 digits. But a new regulation is coming where Tax ID is now 16 digits by adding 0 in front The fix: Remove the first zero and leave the rest for the _run_vat_test function Related PR: odoo#146111 opw-3782636 closes odoo#157885 Signed-off-by: Quentin De Paoli <qdp@odoo.com>
@amay-odoo @qdp-odoo this pull request has forward-port PRs awaiting action (not merged or closed): |
2 similar comments
@amay-odoo @qdp-odoo this pull request has forward-port PRs awaiting action (not merged or closed): |
@amay-odoo @qdp-odoo this pull request has forward-port PRs awaiting action (not merged or closed): |
The issue:
Currently, in Indonesia, the regulation for tax ID is 15 digits.
But a new regulation is coming where Tax ID is now 16 digits by adding 0 in front
The fix:
Remove the first zero and leave the rest for the _run_vat_test function
Related PR: #146111
opw-3782636