[MIG] account_partner_account_number: migrate to 18.0

This commit is contained in:
Stéphan Sainléger
2026-08-11 22:06:11 +02:00
parent ab50455ad3
commit b9c25f1158
8 changed files with 191 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
from odoo import fields, models, _
class ResPartner(models.Model):
_inherit = "res.partner"
account_code = fields.Char('Account code')
_sql_constraints = [
('account_coder_unique',
'unique(account_code)',
'Choose another value of account code - it has to be unique!')
]