And making ready for the future EDI modules. - Added related account group on the move lines to show account moves in a way Peru is used to. As this allows to group by the account group and to divide the hierarchical structure. - Completely new CoA structure and tax structure - Minimal fields for the EDI module later - Districts and cities as we also need codes for the EDI.
9 lines
281 B
Python
9 lines
281 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
from odoo import models, fields
|
|
|
|
|
|
class AccountMoveLine(models.Model):
|
|
_inherit = "account.move.line"
|
|
|
|
l10n_pe_group_id = fields.Many2one("account.group", related="account_id.group_id", store=True)
|