İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
6222 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç

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

Üretici

where am i goin to put this???

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Eyl 21
5005
1
Kas 19
7396
0
Mar 15
3861
1
Haz 23
3695
3
Kas 22
4140