Skip to Content
Menu
This question has been flagged
1 Reply
5632 Views

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.

Avatar
Discard
Best Answer

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)]"/>
Avatar
Discard

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

Author

where am i goin to put this???

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

Related Posts Replies Views Activity
2
Sep 21
4426
1
Nov 19
6662
0
Mar 15
3212
1
Jun 23
3042
3
Nov 22
3327