Add partner bank account restriction
1 unresolved thread
1 unresolved thread
Merge request reports
Activity
assigned to @konykon
added ToBeReviewed label
1 from odoo import models 2 3 4 class ResPartnerBank(models.Model): 5 _inherit = "res.partner.bank" 6 7 _sql_constraints = [ 8 ( 9 "unique_number", 10 "unique(sanitized_acc_number, company_id, partner_id)", I understand we inherit this constraint to add
partner_id
but does it make sense in all the cases?Multiple partners can have the same account if there's more than one "titular" of the account, or for the account of companies, multiple partners can have the same account (the same company one).
removed ToBeReviewed label
added 201 commits
-
a009474a...bd4fb65d - 200 commits from branch
dev
- e5f0df3a - Add partner bank account restriction
-
a009474a...bd4fb65d - 200 commits from branch
changed milestone to %06-11-2023 Sprint
mentioned in commit ae9355f1
mentioned in merge request !253 (merged)
Please register or sign in to reply