mirror of
https://gitlab.com/flectra-community/partner-contact.git
synced 2024-12-24 13:21:48 +00:00
20 lines
475 B
Python
20 lines
475 B
Python
|
# Copyright 2021 Ecosoft Co., Ltd. (https://ecosoft.co.th)
|
||
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||
|
|
||
|
from flectra import fields, models
|
||
|
|
||
|
|
||
|
class ResBank(models.Model):
|
||
|
_inherit = "res.bank"
|
||
|
|
||
|
bank_code = fields.Char()
|
||
|
bank_branch_code = fields.Char()
|
||
|
|
||
|
_sql_constraints = [
|
||
|
(
|
||
|
"bank_code_unique",
|
||
|
"unique(bank_code, bank_branch_code)",
|
||
|
"Bank and Branch Code should be unique.",
|
||
|
),
|
||
|
]
|