콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2321 화면

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

아바타
취소
작성자

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?

관련 게시물 답글 화면 활동
1
4월 22
18364
0
1월 22
2426
1
5월 19
6877
1
11월 15
11426
1
3월 15
5576