oca-ocb-sale/odoo-bringout-oca-ocb-sale/sale/models/chart_template.py
Ernad Husremovic 73afc09215 19.0 vanilla
2026-03-09 09:32:12 +01:00

10 lines
361 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['downpayment_account_id'] = 'res.company'
return property_accounts