Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
5989 Vizualizări

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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)]"/>
Imagine profil
Abandonează

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

Autor

where am i goin to put this???

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

Related Posts Răspunsuri Vizualizări Activitate
2
sept. 21
4807
1
nov. 19
7157
0
mar. 15
3627
1
iun. 23
3499
3
nov. 22
3838