Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
5305 Vizualizări

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
aug. 24
1653
1
nov. 23
4156
3
nov. 24
10415
1
iun. 21
2730
3
ian. 24
14934