Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6009 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ย. 21
4820
1
พ.ย. 19
7162
0
มี.ค. 15
3630
1
มิ.ย. 23
3503
3
พ.ย. 22
3868