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

Cheers!


I've got a field "A" and a field "B".

"B" has a tree view inside.

I want the "create" param of B.tree to be changed according to the value of A (True/False)

I could easily manipulate field B but, what I want is... inside B.


<field name="A"/>

<field name="B">

<tree editable="top" create="true">

    <field name="whatever"/>

</tree>

</field>


Any bright idea? :)


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

That need an extension to allow you to dynamically change the tree create value, I done this before in v6.1 and v7 but not in v8 yet, I call this options modifiers because I define it like options="{'create': [('A', '=', 'value')]}" but needs to be implemented by extending Odoo widgets to add this behavior 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ย. 18
13232
1
มี.ค. 15
4907
[Odoo 14] inheritance doesn't work แก้ไขแล้ว
1
เม.ย. 24
3370
1
ก.ย. 15
4510
2
ธ.ค. 23
20980