Vauxoo / odoo

Fork of Odoo (formerly OpenERP). [This project is not publically mantained just born for internal usage with some little patches] go to official repository on github.com/odoo/odoo
https://www.odoo.com
Other
9 stars 9 forks source link

[IMP] point_of_sale: improve vat validation #289

Closed umiphos closed 5 years ago

umiphos commented 5 years ago

Description of the issue/feature this PR addresses: In pos if you put a space between the Type of VAT and the VAT code we can let the vat with the space to be validated, that's an error, we should let know the user that this VAT is wrong and display the help traceback

Current behavior before PR: If you sabe a VAT PER 20300166611 it will allow us, but the space between is wrong

Desired behavior after PR is merged: Not allow spaces between the VAT

IMAGE DESCRIPTION

-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

umiphos commented 5 years ago

Closed due to error in l10n_pe_edi, we are going to fix it there, we should use the vat validation partner_id._split_vat(VAT)