Skip to content

Commit

Permalink
[FIX] industry_real_estate: set domain in act_window for reload
Browse files Browse the repository at this point in the history
closes #355

X-original-commit: be03d68
Signed-off-by: Vallaeys Valentin (vava) <[email protected]>
  • Loading branch information
vava-odoo committed Jan 7, 2025
1 parent e83058d commit 6e16401
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions industry_real_estate/data/ir_actions_act_window.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<field name="name">Properties</field>
<field name="res_model">account.analytic.account</field>
<field name="view_mode">kanban,list,form</field>
<field name="domain">[('x_is_property', '=', True)]</field>
<field name="view_ids" eval="[
(5, 0, 0),
(0, 0, {'view_mode': 'kanban', 'view_id': ref('property_kanban_view')}),
Expand Down
4 changes: 1 addition & 3 deletions industry_real_estate/data/ir_actions_server.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
<field name="state">code</field>
<field name="code">
<![CDATA[
plan_id = env.ref('industry_real_estate.analytic_plan_properties').id
action = env['ir.actions.actions']._for_xml_id('industry_real_estate.action_properties')
action['domain'] = [('plan_id', '=', plan_id)]
action['context'] = {'default_plan_id': plan_id}
action['context'] = {'default_plan_id': env.ref('industry_real_estate.analytic_plan_properties').id}
]]>
</field>
</record>
Expand Down

0 comments on commit 6e16401

Please sign in to comment.