首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >"group_by_no_leaf“的用法是什么?

"group_by_no_leaf“的用法是什么?
EN

Stack Overflow用户
提问于 2019-07-30 14:52:14
回答 1查看 129关注 0票数 0

我们在动作的上下文中传递"group_by_no_leaf“,有谁能帮助我理解它的确切用法吗?

例如,如下所示:

代码语言:javascript
复制
<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>
EN

回答 1

Stack Overflow用户

发布于 2019-07-31 18:30:38

"group_by_no_leaf“是列表视图的可选参数,在给定时隐藏按钮的第一行。(包含“创建”、“导入”等按钮的行)。

来源: /addons/web/static/tests/views/list_tests.js第1569行包含用于验证此行为的unit_test。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57265876

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档