Skip to content
This repository was archived by the owner on Apr 28, 2022. It is now read-only.

Commit 583d6b8

Browse files
committed
[IMP][T3118]add filter for active and completed session and add default filter for active session
1 parent f22f236 commit 583d6b8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

product_configurator/data/menu_configurable_product.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
<field name="res_model">product.config.session</field>
8585
<field name="view_mode">tree,form</field>
8686
<field name="view_type">form</field>
87+
<field name="context">{'search_default_session_draft': 1}</field>
8788
</record>
8889

8990
<menuitem id="menu_product_config_session"

product_configurator/views/product_config_view.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@
173173
<field name="price"/>
174174
<field name="config_step_name"/>
175175
<field name="product_id"/>
176+
<separator/>
177+
<filter name="session_draft" string="Active Sessions" domain="[('state','=','draft')]"/>
178+
<filter name="session_done" string="Completed Sessions" domain="[('state','=','done')]"/>
176179
<group expand="0" string="Group By">
177180
<filter string="State" name="state" context="{'group_by':'state'}"/>
178181
<filter string="Product Template" name="product_tmpl_id" context="{'group_by':'product_tmpl_id'}"/>

0 commit comments

Comments
 (0)