تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3146 أدوات العرض

Hi,

I am building a module and I need it to enable serial number on install.

I thought first about inserting record res_groups_users_rel but this is the result of a many2many relation.  So how to do it, do I have to insert informations in both res.users and res.groups models or just in one.  Can somebody help me please

Ben

الصورة الرمزية
إهمال
الكاتب

Ok, I did set this record thu an xml file

<record id="stock.group_production_lot" model="res.groups">

<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>

<field name="users" eval="[(4, ref('base.user_root')),(4, ref('base.default_user'))]"/>

</record>

Seam to work if I look a my administrator (even better on a new created user :-) ) I see in the technical setting that the serial number option is enable and my admin and new user can set the serial number feature in product

BUT

Going back in Stock configuration, the serial number feature is still unselected, how to fix it

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
أبريل 25
4240
5
مارس 25
19404
1
يونيو 24
1983
1
مايو 24
2035
1
مارس 24
3018