[NEW] account_sub_account: create add-on

This commit is contained in:
Stéphan Sainléger
2025-04-25 10:30:24 +02:00
committed by Stéphan Sainléger
parent 09f0eaac18
commit c56771ca37
10 changed files with 222 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
from . import res_parter
from . import account_move_line

View File

@@ -0,0 +1,15 @@
from odoo import fields, models
class AccountMoveLine(models.Model):
_inherit = "account.move.line"
sub_account_customer = fields.Char(
string="Custommer sub-account",
related="partner_id.sub_account_customer"
)
sub_account_supplier = fields.Char(
string="Supplier sub-account",
related="partner_id.sub_account_supplier"
)

View File

@@ -0,0 +1,8 @@
from odoo import fields, models
class Partner(models.Model):
_inherit = "res.partner"
sub_account_customer = fields.Char(string="Custommer sub-account")
sub_account_supplier = fields.Char(string="Supplier sub-account")