mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[IMP] add constraint to have an uniq name on bank statement
This commit is contained in:
@@ -111,6 +111,11 @@ class AccountStatementProfile(Model):
|
||||
_constraints = [
|
||||
(_check_partner, "You need to put a partner if you tic the 'Force partner on bank move'!", []),
|
||||
]
|
||||
|
||||
_sql_constraints = [
|
||||
('name_uniq', 'unique (name)', 'The name of the bank statement must be unique !')
|
||||
]
|
||||
|
||||
|
||||
|
||||
class AccountBankSatement(Model):
|
||||
|
||||
Reference in New Issue
Block a user