Skip to content

Commit

Permalink
fix color status
Browse files Browse the repository at this point in the history
  • Loading branch information
mboscolo committed Sep 15, 2023
1 parent 6a8a2cd commit c681982
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
11 changes: 5 additions & 6 deletions plm/views/mrp_extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@
<field name="engineering_revision"/>
</field>
<xpath expr="//tree" position="attributes">
<attribute name="decoration-info">state == 'confirmed'</attribute>
<attribute name="decoration-success">state == 'released'</attribute>
<attribute name="decoration-warning">state == 'undermodify'</attribute>
<attribute name="decoration-muted">state == 'obsoleted'</attribute>
<attribute name="decoration-info">state == 'confirmed'</attribute>
<attribute name="decoration-success">state == 'released'</attribute>
<attribute name="decoration-warning">state == 'undermodify'</attribute>
<attribute name="decoration-danger">state in ['obsoleted', 'suspended']</attribute>
</xpath>
</field>
</record>
Expand Down Expand Up @@ -120,8 +120,7 @@
<attribute name="decoration-info">state == 'confirmed'</attribute>
<attribute name="decoration-success">state == 'released'</attribute>
<attribute name="decoration-warning">state == 'undermodify'</attribute>
<attribute name="decoration-muted">state == 'obsoleted'</attribute>
<attribute name="decoration-danger">state == 'suspended'</attribute>
<attribute name="decoration-danger">state in ['obsoleted', 'suspended']</attribute>
</xpath>
<xpath expr="//field[@name='bom_line_ids']/tree/field[@name='product_id']" position="before">
<field name="related_bom_ids" invisible="True"/>
Expand Down
3 changes: 2 additions & 1 deletion plm/views/product_product_first.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
decoration-info="state == 'confirmed'"
decoration-success="state == 'released'"
decoration-warning="state == 'undermodify'"
decoration-danger="state == 'obsoleted'">
decoration-danger="state in ['obsoleted', 'suspended']"
>

<field name="name" select="1"/>
<!-- Koo search for "select" attribute to use it as filter, so do not remove it-->
Expand Down

0 comments on commit c681982

Please sign in to comment.