コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
6004 ビュー

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
9月 21
4816
1
11月 19
7160
0
3月 15
3630
1
6月 23
3500
3
11月 22
3862