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

What is the best way to create e new window action between the two? Is one of them deprecated?

What are the differences? The only difference I could find is that <act_window> supports the key2 parameter (about that, please check bug lp:1282641) while you would have to also create an ir_values record with the other method.

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

the second one is just an alias and is not deprecated, just like <report>

you can have a look at all the elements here, as well as their attributes

using the <record> element is sometimes mandatory if the alias doesn't have all the attributes declared in the rng definition.

อวตาร
ละทิ้ง
ผู้เขียน

Thanks. The xml tag definitions you linked is really useful. Is there an official guideline on which one to use? Personally I prefer the tag: the syntax is clearer and more compact, it supports additional attributes, and is more self-descripting. Most of the attributes are declared optional and if they aren't it probably makes no sense to omit them, so that is, imo, another point for the tag.

Related Posts ตอบกลับ มุมมอง กิจกรรม
Why XML in odoo ? แก้ไขแล้ว
3
มี.ค. 25
1272
Odoo action error แก้ไขแล้ว
1
ต.ค. 24
5930
0
ธ.ค. 22
2071
3
ก.ย. 20
15714
1
ก.พ. 19
7429