[IMP] return true added in button_check_vat method.
bzr revid: bth@tinyerp.com-20120824055312-u7jjrxifef7kparr
This commit is contained in:
parent
6ebb35dc02
commit
8a23424065
|
@ -109,6 +109,7 @@ class res_partner(osv.osv):
|
||||||
if not self.check_vat(cr, uid, ids, context=context):
|
if not self.check_vat(cr, uid, ids, context=context):
|
||||||
msg = self._construct_constraint_msg(cr, uid, ids, context=context)
|
msg = self._construct_constraint_msg(cr, uid, ids, context=context)
|
||||||
raise osv.except_osv(_('Error!'), msg)
|
raise osv.except_osv(_('Error!'), msg)
|
||||||
|
return True
|
||||||
|
|
||||||
def check_vat(self, cr, uid, ids, context=None):
|
def check_vat(self, cr, uid, ids, context=None):
|
||||||
user_company = self.pool.get('res.users').browse(cr, uid, uid).company_id
|
user_company = self.pool.get('res.users').browse(cr, uid, uid).company_id
|
||||||
|
|
Loading…
Reference in New Issue