17 lines
546 B
Python
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
|