Odoo Hilfe

0

0
2 Antworten
2
Avatar

Nikhil Krishnan Vereinigte Arabische Emirate

--Nikhil Krishnan--
10584
| 7 7 10
Sharjah, Vereinigte Arabische Emirate
--Nikhil Krishnan--

-- Nikhilkrishnan --

Exploring new ways in odoo..!
And want to become a key to the new odoo trends.

-> Odoo Consultancy,
-> Functional and Technical Consultant,
-> Requirement Collection and Analysis,
-> Module Customization,
-> Odoo ERP Community Contributor,
-> Handling ERP/Odoo projects,
-> ERP Workshop Facilitator.
Feel happy working with best and good supporting team.

#PITS Family

Nikhil Krishnan

nikhilkrishnan0101@gmail.com

Nikhil Krishnan Vereinigte Arabische Emirate
22.07.19, 06:28

Hi Fabia,

Please look the code,

  
<record id="group_project_user" model="res.groups">
<field name="name">User</field>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
<field name="category_id" ref="base.module_category_project_management"/>
</record>
<record id="group_project_leader" model="res.groups">
<field name="name">Leader</field>
<field name="category_id" ref="base.module_category_project_management"/>
<field name="implied_ids" eval="[(4, ref('group_project_user'))]"/>
</record>

<record id="group_project_manager" model="res.groups"

<field name="name">Manager</field>
<field name="category_id" ref="base.module_category_project_management"/>
<field name="implied_ids" eval="[(4, ref('group_project_leader'))]"/>
</record>

<record id="group_project_chairman" model="res.groups">
<field name="name">Chairman</field>
<field name="category_id" ref="base.module_category_project_management"/>
<field name="implied_ids" eval="[(4, ref('group_project_manager'))]"/>
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
</record>


Regards,

Nikhilkrishnan

2 Kommentare
Fabia.Jiang China
22.07.19, 07:20

It seems that in each level I should write code"eval" for previous levels,and write (eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]") in last level.

Well,now it works.Thanks. : )

Nikhil Krishnan Vereinigte Arabische Emirate
22.07.19, 07:53

implied_ids are inherited group privileges. A group which inherits other groups, will get all the other groups rights in top of their own

2
Avatar

Manish Kumar Bohra Indien

--Manish Kumar Bohra--
10998
| 6 5 10
Bikaner, Indien
--Manish Kumar Bohra--


Manish Kumar Bohra Indien
22.07.19, 07:15

Hello, 

You can check below code maybe its helps you 


<record id="new_crm_groups" model="ir.module.category">
<field name="name">CRM</field>
<field name="sequence">14</field>
</record>
<record id="group_crm_manager" model="res.groups">
<field name="name">CRM Managers</field>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
<field name="category_id" ref="new_crm_groups"/>
</record>
<record id="group_crm_user" model="res.groups">
<field name="name">CRM Users</field>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
<field name="category_id" ref="new_crm_groups"/>
</record>
<record id="group_crm_officer" model="res.groups">
<field name="name">CRM Officer</field>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
<field name="category_id" ref="new_crm_groups"/>
</record>

Thanks


Fragen Sie
Writer
Keep Informed
1 Verfolger
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now