Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
6043 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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)]"/>
Awatar
Odrzuć

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

Powiązane posty Odpowiedzi Widoki Czynność
2
wrz 21
4862
1
lis 19
7176
0
mar 15
3654
1
cze 23
3523
3
lis 22
3899