Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2215 Weergaven

Is it guaranteed that all entries an Odoo datafile are processed in given order? I have this example:

	<odoo>
<data noupdate="1">
<function model="my.custom.model" name="pre_process">
<value>SOMEVALUE</value>
</function>
<record name="custom_record" model="my.custom.model">
<field name="name">SOMEVALUE</field>
</record>
<function model="my.custom.model" name="post_process">
<value>SOMEVALUE</value>
</function>
</data>
</odoo>

I want that function pre_process is called first and when it has finished, then - and not earlier - data record custom_record is imported and finally when all records are imported, post_process function is called. Can I trust that these actions are carried in sequential order one after one?

I'm using Odoo 15.

-- Sami

Avatar
Annuleer
Auteur

I'm asking this because I have a reason to believe that functions are not behaving as neatly as data records. First data record is being imported while first function call is still being processed. Can this be true?

Gerelateerde posts Antwoorden Weergaven Activiteit
1
apr. 22
18364
0
jan. 22
2335
1
mei 19
6782
1
nov. 15
11313
1
mrt. 15
5492