跳至內容
選單
此問題已被標幟
1 回覆
2000 瀏覽次數

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
3月 25
1476
0
10月 24
1454
1
9月 24
1568
1
8月 24
1666
1
7月 24
1535