mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-27 15:22:03 +02:00
19.0 vanilla
This commit is contained in:
parent
ff721d030e
commit
7721452493
1826 changed files with 124775 additions and 274114 deletions
|
|
@ -0,0 +1,22 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import api, models, Command
|
||||
|
||||
|
||||
class AccountJournal(models.Model):
|
||||
_inherit = 'account.journal'
|
||||
|
||||
@api.model
|
||||
def _prepare_liquidity_account_vals(self, company, code, vals):
|
||||
''' Set Balance Sheet and SAF-T tags on new bank and cash accounts.'''
|
||||
# OVERRIDE
|
||||
account_vals = super()._prepare_liquidity_account_vals(company, code, vals)
|
||||
|
||||
if company.account_fiscal_country_id.code == 'AT':
|
||||
account_vals.setdefault('tag_ids', [])
|
||||
account_vals['tag_ids'] += [
|
||||
Command.link(self.env.ref('l10n_at.account_tag_l10n_at_ABIV').id),
|
||||
Command.link(self.env.ref('l10n_at.account_tag_external_code_2300').id),
|
||||
]
|
||||
|
||||
return account_vals
|
||||
Loading…
Add table
Add a link
Reference in a new issue