Fix tax matching on many2one
review599005
This commit is contained in:
@@ -1192,7 +1192,8 @@ class TaxRuleLine(ModelSQL, ModelView):
|
||||
if not getattr(self, field) and field != 'group':
|
||||
continue
|
||||
if self._fields[field]._type == 'many2one':
|
||||
if getattr(self, field).id != pattern[field]:
|
||||
if ((getattr(self, field).id if getattr(self, field) else None)
|
||||
!= pattern[field]):
|
||||
return False
|
||||
else:
|
||||
if getattr(self, field) != pattern[field]:
|
||||
|
||||
Reference in New Issue
Block a user