Odoo Help

0

Ho to insert TIN (VAT code) without Country Code?

By
a n
on 9/27/15, 10:18 AM 1,136 views

Hello,

I would insert the VAT code without the initial CC. I would do the same for Albania and EU countries.

Can you tell me what I need to edit in the file base_vat.py? 




Here is my Vat Validation function:

_ref_vat = {

'al': 'K12345678L' # Albania, contributed by Alban Ndoja

}



# VAT validation in Albania, contributed by # Alban Ndoja.

def check_vat_al(self, vat):

if re.match("[ABCDEFGHIJKLMNOPQRSTUVXYZ][\d]{8}[ABCDEFGHIJKLMNOPQRSTUVXYZ]", vat, flags=0):

return True

else:

return False



About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 9/27/15, 10:18 AM
Seen: 1136 times
Last updated: 9/27/15, 10:58 AM