[FIX]Default activity view was limited to direct childs of all activities
This commit is contained in:
parent
bb82b78630
commit
8c92519692
@ -84,6 +84,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<field name="season_id" widget="many2one" />
|
<field name="season_id" widget="many2one" />
|
||||||
<filter name="season_default" string="Default season"
|
<filter name="season_default" string="Default season"
|
||||||
domain="[('is_current', '=', True)]" />
|
domain="[('is_current', '=', True)]" />
|
||||||
|
<group string="Group By">
|
||||||
|
<filter name="group_category" string="By category"
|
||||||
|
context="{'group_by': 'categ_id'}"/>
|
||||||
|
</group>
|
||||||
</search>
|
</search>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
@ -94,15 +98,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<field name="name">GOLEM Activities</field>
|
<field name="name">GOLEM Activities</field>
|
||||||
<field name="res_model">golem.activity</field>
|
<field name="res_model">golem.activity</field>
|
||||||
<field name="view_mode">kanban,tree,form</field>
|
<field name="view_mode">kanban,tree,form</field>
|
||||||
<field name="domain" eval="[('categ_id', 'child_of', ref('golem_activity.golem_product_category_all_activities'))]" />
|
<field name="view_id" ref="product.product_template_kanban_view"/>
|
||||||
<field name="context"
|
<field name="context"
|
||||||
eval="{'search_default_season_default': True, 'default_categ_id': ref('golem_activity.golem_product_category_all_activities')}" />
|
eval="{'search_default_season_default': True, 'default_categ_id': ref('golem_activity.golem_product_category_all_activities')}" />
|
||||||
</record>
|
</record>
|
||||||
<record model="ir.actions.act_window.view" id="act_view_kanban">
|
|
||||||
<field name="view_mode">kanban</field>
|
|
||||||
<field name="view_id" ref="product.product_template_kanban_view"/>
|
|
||||||
<field name="act_window_id" ref="action"/>
|
|
||||||
</record>
|
|
||||||
<record id="category_action" model="ir.actions.act_window">
|
<record id="category_action" model="ir.actions.act_window">
|
||||||
<field name="name">Activities Categories</field>
|
<field name="name">Activities Categories</field>
|
||||||
<field name="res_model">product.category</field>
|
<field name="res_model">product.category</field>
|
||||||
@ -116,7 +115,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<menuitem id="activity_list" name="List"
|
<menuitem id="activity_list" name="List"
|
||||||
parent="activity_menu" sequence="0"
|
parent="activity_menu" sequence="0"
|
||||||
action="action" />
|
action="action" />
|
||||||
<menuitem id="activity_categ" name="Activities categories"
|
<menuitem id="activity_categ" name="Categories"
|
||||||
parent="activity_menu" sequence="10"
|
parent="activity_menu" sequence="10"
|
||||||
action="category_action" />
|
action="category_action" />
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user