diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-09-05 16:19:20 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-09-05 16:19:20 +0700 |
| commit | e07379886024a313695a56ebdd072bfd87b6626a (patch) | |
| tree | 0c242434cc35379d59d885d42784b1facb3f31ab /indoteknik_custom/models/account_move_line.py | |
| parent | c4bf293cd29fab412d38e7590acdc99f2456c0d8 (diff) | |
try to fix bug on odoo
Diffstat (limited to 'indoteknik_custom/models/account_move_line.py')
| -rw-r--r-- | indoteknik_custom/models/account_move_line.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/account_move_line.py b/indoteknik_custom/models/account_move_line.py index c230b956..a4b25109 100644 --- a/indoteknik_custom/models/account_move_line.py +++ b/indoteknik_custom/models/account_move_line.py @@ -6,9 +6,10 @@ class AccountMoveLine(models.Model): cost_centre_id = fields.Many2one('cost.centre', string='Cost Centre') is_required = fields.Boolean(string='Is Required', compute='_compute_is_required') + analytic_account_ids = fields.Many2many('account.analytic.account', string='Analytic Account') @api.onchange('account_id') - def _onchange_analytic_account_ids(self): + def _onchange_account_id(self): for account in self: analytic_account = account.account_id.analytic_tag_ids account.analytic_tag_ids = analytic_account |
