diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-09-05 14:45:18 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-09-05 14:45:18 +0700 |
| commit | 513bce9e13dee0453ce24b41a54d3b408e58c7f0 (patch) | |
| tree | 21426e7af98ad3fcb34101e42ce0979d4472958a /indoteknik_custom/models/account_move_line.py | |
| parent | a1137c5bb22734eff9585b7b95607983f23d2de9 (diff) | |
Fix bug solr product variants, add analytic tags to jurnal entries line, remove validation edit di purchase pricelist
Diffstat (limited to 'indoteknik_custom/models/account_move_line.py')
| -rw-r--r-- | indoteknik_custom/models/account_move_line.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/indoteknik_custom/models/account_move_line.py b/indoteknik_custom/models/account_move_line.py index cb969855..c230b956 100644 --- a/indoteknik_custom/models/account_move_line.py +++ b/indoteknik_custom/models/account_move_line.py @@ -6,13 +6,12 @@ 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): for account in self: - analytic_account = account.account_id.analytic_account_ids - account.analytic_account_ids = analytic_account + analytic_account = account.account_id.analytic_tag_ids + account.analytic_tag_ids = analytic_account @api.onchange('account_id') def _compute_is_required(self): |
