Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
6007 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona

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

Autore

where am i goin to put this???

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

Post correlati Risposte Visualizzazioni Attività
2
set 21
4819
1
nov 19
7161
0
mar 15
3630
1
giu 23
3501
3
nov 22
3865