[FIX] mrp: date_planned_start readonly when done

change the unexciting `close` state in `done` in the attrs of
`date_planned_start`

task-2372196
This commit is contained in:
Rémy Voet (ryv)
2020-11-10 10:43:48 +00:00
committed by Arnold Moyaux
parent 07a9b3214a
commit 923a1c3d53
+1 -1
View File
@@ -173,7 +173,7 @@
<label for="date_planned_start"/>
<div class="o_row">
<field name="date_planned_start"
attrs="{'readonly': ['|', ('is_planned', '=', True), ('state', 'in', ['close', 'cancel'])]}"
attrs="{'readonly': ['|', ('is_planned', '=', True), ('state', 'in', ['done', 'cancel'])]}"
decoration-warning="state not in ('done', 'cancel') and date_planned_start &lt; now"
decoration-danger="state not in ('done', 'cancel') and date_planned_start &lt; current_date"
decoration-bf="state not in ('done', 'cancel') and (date_planned_start &lt; current_date or date_planned_start &lt; now)"/>