تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
6014 أدوات العرض

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.

الصورة الرمزية
إهمال
أفضل إجابة

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)]"/>
الصورة الرمزية
إهمال

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

الكاتب

where am i goin to put this???

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

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
سبتمبر 21
4825
1
نوفمبر 19
7162
0
مارس 15
3631
1
يونيو 23
3505
3
نوفمبر 22
3872