Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5995 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit

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

Autor

where am i goin to put this???

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

Related Posts Odpovědi Zobrazení Aktivita
2
zář 21
4808
1
lis 19
7158
0
bře 15
3629
1
čvn 23
3499
3
lis 22
3839