Initial commit: L10N_Europe packages

This commit is contained in:
Ernad Husremovic 2025-08-29 15:20:52 +02:00
commit 9803722600
2377 changed files with 380711 additions and 0 deletions

View file

@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
from odoo import api, models
class AccountJournal(models.Model):
_inherit = "account.journal"
@api.model
def _prepare_liquidity_account_vals(self, company, code, vals):
res = super()._prepare_liquidity_account_vals(company, code, vals)
if company.account_fiscal_country_id.code == 'DE':
tag_ids = res.get('tag_ids', [])
tag_ids.append((4, self.env.ref('l10n_de.tag_de_asset_bs_B_IV').id))
res['tag_ids'] = tag_ids
return res