我们在动作的上下文中传递"group_by_no_leaf“,有谁能帮助我理解它的确切用法吗?
例如,如下所示:
<record id="action_project_task_user_tree" model="ir.actions.act_window">
<field name="name">Tasks Analysis</field>
<field name="res_model">report.project.task.user</field>
<field name="view_type">form</field>
<field name="view_mode">graph,pivot</field>
<field name="search_view_id" ref="view_task_project_user_search"/>
<field name="context">{'group_by_no_leaf':1,'group_by':[]}</field>
<field name="help">This report allows you to analyse the performance of your projects and users. You can analyse the quantities of tasks, the hours spent compared to the planned hours, the average number of days to open or close a task, etc.</field>
</record>发布于 2019-07-31 18:30:38
"group_by_no_leaf“是列表视图的可选参数,在给定时隐藏按钮的第一行。(包含“创建”、“导入”等按钮的行)。
来源: /addons/web/static/tests/views/list_tests.js第1569行包含用于验证此行为的unit_test。
https://stackoverflow.com/questions/57265876
复制相似问题