跳至内容
菜单
此问题已终结
2 回复
1121 查看
<odoo>

<record id="module_category_accounting_dashboards" model="ir.module.category">

<field name="name">Accounting Dashboards</field>

<field name="parent_id" ref="base.module_category_accounting"/>

</record>

<record id="group_accounting_dashboard_all" model="res.groups">

<field name="name">All Journals</field>

<field name="category_id" ref="mits_account_dashboard.module_category_accounting_dashboards"/>

</record>

<record id="group_accounting_dashboard_sales" model="res.groups">

<field name="name">Sales Journals</field>

<field name="category_id" ref="mits_account_dashboard.module_category_accounting_dashboards"/>

</record>

<record id="group_accounting_dashboard_purchases" model="res.groups">

<field name="name">Purchase Journals</field>

<field name="category_id" ref="mits_account_dashboard.module_category_accounting_dashboards"/>

</record>

<record id="group_accounting_dashboard_cash" model="res.groups">

<field name="name">Cash Journals</field>

<field name="category_id" ref="mits_account_dashboard.module_category_accounting_dashboards"/>

</record>

<record id="group_accounting_dashboard_bank" model="res.groups">

<field name="name">Bank Journals</field>

<field name="category_id" ref="mits_account_dashboard.module_category_accounting_dashboards"/>

</record>

<record id="group_accounting_dashboard_cash_bank" model="res.groups">

<field name="name">Cash &amp; Bank Journals</field>

<field name="implied_ids" eval="[(4,ref('group_accounting_dashboard_cash'),0),(4,ref('group_accounting_dashboard_bank'),0)]"/>

<field name="category_id" ref="mits_account_dashboard.module_category_accounting_dashboards"/>

</record>

<record id="group_accounting_dashboard_misc" model="res.groups">

<field name="name">Misc Journals</field>

<field name="category_id" ref="mits_account_dashboard.module_category_accounting_dashboards"/>

</record>

<record id="group_accounting_dashboard_no_dashboard" model="res.groups">

<field name="name">None</field>

<field name="category_id" ref="mits_account_dashboard.module_category_accounting_dashboards"/>

</record>


<record id="account.group_account_readonly" model="res.groups">

<field name="implied_ids" eval="[(4,ref('mits_account_dashboard.group_accounting_dashboard_no_dashboard'),0)]"/>

</record>


</odoo>

Code above is to add groups but the groups only show in User Access rights tab  when in dev mode.  How do I make it show in non-dev mode?

Using Odoo16

形象
丢弃
编写者 最佳答案

This does not work.  There is no field in res.groups called "application". 

形象
丢弃
最佳答案

Hello Milwell Information Technology Services,

I Hope you are doing well,

​​Here is your answer Add the <field name="application" eval="True"/> field to each res.groups record ​that ​you want to display ​in non-developer mode.

Hope this information helps you.

Thanks & Regards,
Kunjan Patel

形象
丢弃
相关帖文 回复 查看 活动
1
5月 25
763
2
11月 24
2159
1
7月 24
1285
0
10月 23
1102
1
6月 23
1845