Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
6022 Представления

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

Related Posts Ответы Просмотры Активность
2
сент. 21
4837
1
нояб. 19
7165
0
мар. 15
3635
1
июн. 23
3513
3
нояб. 22
3880