Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1985 Widoki

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?



Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
mar 25
1404
0
paź 24
1377
1
wrz 24
1528
1
sie 24
1626
1
lip 24
1507