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

Hello,

I'm using Odoo13 Community Edition.


I want to get a parent value for "decoration-danger" if condition, for a one2many field inside a form view. The following tree view is inside a form view:

<tree string="Arbeitaufträge" create="false" editable="bottom" options="{'no_open': True}" decoration-danger="workcenter_id==_id and state in ('ready', 'progress', 'pending')">

<field name="name"/>

<field name="workcenter_id"/>

<field name="state"/>

</tree>


So with "_id" I want to get the id of the record from the form view.

I hope somebody can help me.

Thanks in advance.


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
One2many fields in tree views แก้ไขแล้ว
2
พ.ย. 20
17811
1
ก.พ. 19
6182
0
มี.ค. 15
4257
2
ก.ย. 24
7910
3
ก.ค. 23
11810