[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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user