[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:
committed by
Arnold Moyaux
parent
07a9b3214a
commit
923a1c3d53
@@ -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 < now"
|
||||
decoration-danger="state not in ('done', 'cancel') and date_planned_start < current_date"
|
||||
decoration-bf="state not in ('done', 'cancel') and (date_planned_start < current_date or date_planned_start < now)"/>
|
||||
|
||||
Reference in New Issue
Block a user