Files
account-tools/account_sub_accounts/models/account_move_line.py
Quentin Mondot 64b8e45af1
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 1m28s
[IMP] account_sub_accounts : apply changes proposed by pre-commit
2025-10-08 18:25:03 +02:00

14 lines
363 B
Python

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"
)