This commit is contained in:
2026-11-08 17:43:44 +08:00
parent 974a1fb10b
commit 3b5af1e3a6
483 changed files with 590466 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
from . import account_move
from . import chart_template
from . import res_company

View File

@@ -0,0 +1,9 @@
from odoo import models
class AccountMove(models.Model):
_inherit = 'account.move'
def _get_invoice_in_payment_state(self):
# OVERRIDE to enable the 'in_payment' state on invoices.
return 'in_payment'

View File

@@ -0,0 +1,8 @@
from odoo import models
class AccountChartTemplate(models.AbstractModel):
_inherit = 'account.chart.template'
def _post_load_data(self, template_code, company, template_data):
super()._post_load_data(template_code, company, template_data)

View File

@@ -0,0 +1,13 @@
from odoo import fields, models
class ResCompany(models.Model):
_inherit = 'res.company'
account_tax_return_journal_id = fields.Many2one(
comodel_name='account.journal',
inverse='_inverse_account_tax_return_journal_id',
)
def _inverse_account_tax_return_journal_id(self):
self.account_tax_return_journal_id.show_on_dashboard = True