콘텐츠로 건너뛰기
메뉴
신고된 질문입니다
1 회신
2013 화면

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
1523
0
10월 24
1483
1
9월 24
1596
1
8월 24
1701
1
7월 24
1557