diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 18c4c9f8846..b8efdff9ebf 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -468,7 +468,7 @@ class AccountMoveLine(models.Model): analytic_line_ids = fields.One2many('account.analytic.line', 'move_id', string='Analytic lines', oldname="analytic_lines") tax_ids = fields.Many2many('account.tax', string='Taxes') tax_line_id = fields.Many2one('account.tax', string='Originator tax', ondelete='restrict') - analytic_account_id = fields.Many2one('account.analytic.account', string='Analytic Account') + analytic_account_id = fields.Many2one('account.analytic.account', string='Analytic Account', index=True) analytic_tag_ids = fields.Many2many('account.analytic.tag', string='Analytic Tags') company_id = fields.Many2one('res.company', related='account_id.company_id', string='Company', store=True, readonly=True) counterpart = fields.Char("Counterpart", compute='_get_counterpart', help="Compute the counter part accounts of this journal item for this journal entry. This can be needed in reports.") diff --git a/addons/account/views/res_config_settings_views.xml b/addons/account/views/res_config_settings_views.xml index 2c23fdf635b..c92d484504e 100644 --- a/addons/account/views/res_config_settings_views.xml +++ b/addons/account/views/res_config_settings_views.xml @@ -384,7 +384,7 @@