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

I'm creating a 8.0 module and want to create this record in an xml if the record hasn't already been created by anyone else:

<record id="bg" model="res.partner.bank.type">
    <field name="name">Bankgiro</field>
    <field name="code">bg</field>
</record>
Is there a way in xml to have this conditioned like "if not 'bg' in res.partner.bank.type" the go ahead an create the record, else do nothing!

The thing is, there's another module that creates this record but I don't want to depend on that module just for this. And I don't want to create duplicate records like it does right now.

아바타
취소

if all your modules shares similar identical information, it might be wiser to do build a base module of yours, and make other modules depend on it. so you will have no conflict with any.

관련 게시물 답글 화면 활동
0
6월 22
13
0
9월 21
2591
4
1월 20
13659
2
9월 18
3966
2
5월 24
8109