Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
6001 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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)]"/>
Ảnh đại diện
Huỷ bỏ

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

Tác giả

where am i goin to put this???

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 9 21
4813
1
thg 11 19
7160
0
thg 3 15
3629
1
thg 6 23
3500
3
thg 11 22
3861