Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4908 Prikazi

I'm a beginer in OpenErp. I'm trying to change default shop_id in sale.orders. But in sale_data.xml:

<function eval="('default',False,'shop_id', [('sale.order', False)], sale_shop_1, True, False, False, False, True)" id="sale_default_set" model="ir.values" name="set"/>

This code create an record in setting -> technical -> actions -> User-defined Defaults

 In my code, I write: 

<delete model="ir.values" id="sale_default_set"/>

But it doesn't work. Someone help me with this problem.

Thanks you so much, :D.

Avatar
Opusti
Best Answer

The ID is always prefixed by the name of your module.  Add that and it should be deleted.  Even better, export the record to see the entire ID so you can be sure.

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
avg. 24
1007
1
nov. 23
3380
3
nov. 24
9386
1
jun. 21
2195
3
jan. 24
14419