[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:
Kirti Savalia (OpenERP)
2012-09-19 18:10:47 +05:30
parent d659d9660e
commit 703128e3e4
+1
View File
@@ -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