mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
This commit is contained in:
committed by
Carlos Roca
parent
c214aeb08b
commit
cd853bded1
@@ -21,3 +21,11 @@ class AccountPaymentMethod(models.Model):
|
||||
self.ensure_one()
|
||||
raise UserError(_(
|
||||
"No XSD file path found for payment method '%s'") % self.name)
|
||||
|
||||
_sql_constraints = [(
|
||||
# Extending this constraint from account_payment_mode
|
||||
'code_payment_type_unique',
|
||||
'unique(code, payment_type, pain_version)',
|
||||
'A payment method of the same type already exists with this code'
|
||||
' and PAIN version'
|
||||
)]
|
||||
|
||||
Reference in New Issue
Block a user