Odoo18-Base/addons/sale/models/chart_template.py
2025-01-06 10:57:38 +07:00

11 lines
381 B
Python

from odoo import models
class AccountChartTemplate(models.AbstractModel):
_inherit = 'account.chart.template'
def _get_property_accounts(self, additional_properties):
property_accounts = super()._get_property_accounts(additional_properties)
property_accounts['property_account_downpayment_categ_id'] = 'product.category'
return property_accounts