mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-27 10:22:07 +02:00
Initial commit: L10N_Europe packages
This commit is contained in:
commit
9803722600
2377 changed files with 380711 additions and 0 deletions
4
odoo-bringout-oca-ocb-l10n_lu/l10n_lu/models/__init__.py
Normal file
4
odoo-bringout-oca-ocb-l10n_lu/l10n_lu/models/__init__.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import account_chart_template
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import api, models
|
||||
|
||||
|
||||
class AccountChartTemplate(models.Model):
|
||||
_inherit = 'account.chart.template'
|
||||
|
||||
@api.model
|
||||
def _prepare_all_journals(self, acc_template_ref, company, journals_dict=None):
|
||||
journal_data = super(AccountChartTemplate, self)._prepare_all_journals(
|
||||
acc_template_ref, company, journals_dict)
|
||||
for journal in journal_data:
|
||||
if journal['type'] in ('sale', 'purchase') and company.account_fiscal_country_id.code == "LU":
|
||||
journal.update({'refund_sequence': True})
|
||||
return journal_data
|
||||
Loading…
Add table
Add a link
Reference in a new issue