[ADD] copy paste module account_sub_accounts from version 16.0 and updated version to 18.0

This commit is contained in:
2025-10-08 18:02:21 +02:00
parent 1f53587a3f
commit 93de63c290
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")