Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
6012 Prikazi

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
Opusti
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
Opusti

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

Avtor

where am i goin to put this???

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

Related Posts Odgovori Prikazi Aktivnost
2
sep. 21
4822
1
nov. 19
7162
0
mar. 15
3630
1
jun. 23
3503
3
nov. 22
3872