flectra/addons/l10n_nl/models/account_chart_template.py
flectra-admin 769eafb483 [INIT] Inception of Flectra from Odoo
Flectra is Forked from Odoo v11 commit : (6135e82d73)
2018-01-16 11:45:59 +05:30

17 lines
546 B
Python

# -*- coding: utf-8 -*-
from odoo import api, fields, models, _
class WizardMultiChartsAccounts(models.TransientModel):
_inherit = 'wizard.multi.charts.accounts'
@api.multi
def execute(self):
# Add tag to 999999 account
res = super(WizardMultiChartsAccounts, self).execute()
account = self.env['account.account'].search([('code', '=', '999999'), ('company_id', '=', self.company_id.id)])
if account:
account.tag_ids = [(4, self.env.ref('l10n_nl.account_tag_12').id)]
return res