[FIX] account: Modify the sql constraints for the tax object, use the description instead of the name
bzr revid: stw@openerp.com-20120206135658-5i35qm0dyyf4i6kl
This commit is contained in:
parent
6589afbfa5
commit
433b98f832
|
@ -1883,7 +1883,7 @@ class account_tax(osv.osv):
|
|||
|
||||
}
|
||||
_sql_constraints = [
|
||||
('name_company_uniq', 'unique(name, company_id)', 'Tax Name must be unique per company!'),
|
||||
('description_company_uniq', 'unique(description, company_id)', 'The description must be unique per company!'),
|
||||
]
|
||||
|
||||
def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=80):
|
||||
|
|
Loading…
Reference in New Issue