Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
5 Vastaukset
12557 Näkymät

I am trying to remove implied ids of purchase user group. This is actual group in purchase order

<record id="group_purchase_manager" model="res.groups">
    <field name="name">Manager</field>
    <field name="category_id" ref="base.module_category_purchase_management"/>
    <field name="implied_ids" eval="[(4, ref('group_purchase_user'))]"/>
    <field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>

Then I am trying to remove implied of the group in my custom module

<record id="purchase.group_purchase_manager" model="res.groups">
    <field name="name">Manager</field>
    <field name="category_id" ref="base.module_category_purchase_management"/>
    <field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>

I also tries another

<record id="purchase.group_purchase_manager" model="res.groups">
    <field name="implied_ids" eval="False"/>
</record>

unfortunately both will not work.

I checked the groups of purchases/Manger in UI but the inherited group purchases/User still there.

How to remove implied ids from purchase manager group??

Avatar
Hylkää
Tekijä

@Niyas:Thanks for the important information.I use like that it will works correctly

Paras vastaus

Hi,acha aslam

Use below code to remove Inherited group

<record id="purchase.group_purchase_manager" model="res.groups">

    <field name="implied_ids" eval="[(3, ref('base.user_root'))]"/>
</record>

Hope this will help you.

Thanks!

Avatar
Hylkää
Tekijä

@Jainsesh Shah:Thanks, It works perfectly

Paras vastaus

Rather than just rewriting the record with removing the implied ids line, use 3 instead of 4, which will cut the relation

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
heinäk. 17
14566
2
heinäk. 25
4521
2
jouluk. 24
7687
2
marrask. 24
28443
2
toukok. 24
7421