[FIX]:button_check_vat method returns ‘None’ in case of succesful VAT check which causes an error message on GTK clients when using protocol xml-rpc
bzr revid: ksa@tinyerp.co.in-20120919124047-4x3gfmao2ogaqu1h
This commit is contained in:
@@ -108,6 +108,7 @@ class res_partner(osv.osv):
|
||||
if not self.check_vat(cr, uid, ids, context=context):
|
||||
msg = self._construct_constraint_msg(cr, uid, ids, context=context)
|
||||
raise osv.except_osv(_('Error'), msg)
|
||||
return True
|
||||
|
||||
def check_vat(self, cr, uid, ids, context=None):
|
||||
user_company = self.pool.get('res.users').browse(cr, uid, uid).company_id
|
||||
|
||||
Reference in New Issue
Block a user