Skip to content
Snippets Groups Projects
Commit 95c993a3 authored by Julien Mougenot's avatar Julien Mougenot
Browse files

[IMP] mrp: Add decoration based on datetime


closes odoo/odoo#52337

Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
parent 669c2eba
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<field name="message_needaction" invisible="1"/> <field name="message_needaction" invisible="1"/>
<field name="name" decoration-bf="1"/> <field name="name" decoration-bf="1"/>
<field name="date_planned_start" readonly="1" optional="show" <field name="date_planned_start" readonly="1" optional="show"
attrs="{'readonly': [('state', 'in', ['done', 'cancel'])]}" decoration-danger="date_planned_start&lt;current_date and state not in ('done','cancel')"/> attrs="{'readonly': [('state', 'in', ['done', 'cancel'])]}" decoration-danger="date_planned_start&lt;now and state not in ('done','cancel')"/>
<field name="date_deadline" widget="remaining_days" attrs="{'invisible': [('state', 'in', ['done', 'cancel'])]}" optional="hide"/> <field name="date_deadline" widget="remaining_days" attrs="{'invisible': [('state', 'in', ['done', 'cancel'])]}" optional="hide"/>
<field name="product_id" readonly="1" optional="show"/> <field name="product_id" readonly="1" optional="show"/>
<field name="product_uom_id" string="Unit of Measure" options="{'no_open':True,'no_create':True}" groups="uom.group_uom" optional="show"/> <field name="product_uom_id" string="Unit of Measure" options="{'no_open':True,'no_create':True}" groups="uom.group_uom" optional="show"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment