[FIX] base_vat: TypeError: _construct_constraint_msg() got an unexpected keyword argument 'context'

bzr revid: mra@mra-laptop-20101207071800-130g8mx7m3wz43mf
This commit is contained in:
Mustufa Rangwala 2010-12-07 12:48:00 +05:30
parent 2e0e73b77c
commit 3f84e8778c
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class res_partner(osv.osv):
'vat_subjected': fields.boolean('VAT Legal Statement', help="Check this box if the partner is subjected to the VAT. It will be used for the VAT legal statement.")
}
def _construct_constraint_msg(self, cr, uid, ids):
def _construct_constraint_msg(self, cr, uid, ids, context=None):
def default_vat_check(cn, vn):
# by default, a VAT number is valid if:
# it starts with 2 letters