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

Hi, i want to create two helpdesk teams from xml in my custom module that inherit "helpdesk" when is installed.


I saw that they create a Support team by default by test, there is another way?



الصورة الرمزية
إهمال
أفضل إجابة

Hi,

In your module you can add a  data file and create team records from code, you can try like this,

<record id="help_desk_team1" model="helpdesk.team">
<field name="name">Odoo Support</field>
<field name="alias_name">support</field>
<field name="stage_ids" eval="False"/>
<field name="use_sla" eval="True"/>
</record>


See more at here: How To Create Data Files and Load Default Data In Odoo

Thanks

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
مارس 25
1458
0
أكتوبر 24
1439
1
سبتمبر 24
1554
1
أغسطس 24
1664
1
يوليو 24
1527