Skip to Content
Menu
This question has been flagged

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.


Avatar
Discard
Related Posts Replies Views Activity
2
Nov 20
15906
1
Feb 19
5271
0
Mar 15
3452
2
Sep 24
6519
3
Jul 23
10160