Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5290 มุมมอง

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.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Delete Blank Lines แก้ไขแล้ว
1
ส.ค. 24
1643
Delete Company (Odoo v14) แก้ไขแล้ว
1
พ.ย. 23
4141
Delete my account แก้ไขแล้ว
3
พ.ย. 24
10397
1
มิ.ย. 21
2725
3
ม.ค. 24
14925