[FIX] analytic: gross margin domain empty

To reproduce:
- Create a new plan with an account
- Add an analytic item with this account
- Go to the view of this account
- Gross Margin Button has a value
- Click on it
=> List is empty

The reason being that the view should not include account_id,
but auto_account_id

closes odoo/odoo#147080

Signed-off-by: William André (wan) <wan@odoo.com>
This commit is contained in:
Gauthier Wala (gawa)
2023-12-21 13:01:15 +00:00
parent 19852c3bb4
commit 5506ca7479
@@ -38,8 +38,8 @@
</record>
<record model="ir.actions.act_window" id="account_analytic_line_action">
<field name="context">{'search_default_group_date': 1, 'default_account_id': active_id}</field>
<field name="domain">[('account_id','=', active_id)]</field>
<field name="context">{'search_default_group_date': 1}</field>
<field name="domain">[('auto_account_id','=', active_id)]</field>
<field name="name">Gross Margin</field>
<field name="res_model">account.analytic.line</field>
<field name="view_mode">tree,form,graph,pivot</field>