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

Hello my friends!!

Please, i want to delete the records of different types of contracts in odoo.

So that, i want to use the xml file.

But, i didnt know how to proceed.

Can anyone help me please.

THanks a lot in advance.

Best regards.

아바타
취소
베스트 답변

you can try  any on these  syntax

 <delete model='product.product' search="[('id','=',ref('product.product_product_4b'))]" />
<delete model="target_model" search="[('id','=',target_id)]"/>
아바타
취소

you can also use id = ref('target_module.target_id') in the delete tag

작성자

where am i goin to put this???

create a file data.xml (marked noupdate="1" )and place it reference in openerp.py

관련 게시물 답글 화면 활동
2
9월 21
4863
1
11월 19
7179
0
3월 15
3658
1
6월 23
3524
3
11월 22
3901