diff options
| author | Martin Trigaux <mat@odoo.com> | 2018-03-09 10:56:11 +0100 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2018-03-09 11:22:57 +0100 |
| commit | d8e2f6a89d3fb097e8233ad2c9beff6ebd3bc9c3 (patch) | |
| tree | 1cacd7acfaa4df09d50d45d09bb5771445012cfb /addons | |
| parent | 985bb12488a496e595bffee420f540d6a2dc0bbe (diff) | |
[IMP] purchase: do not make the field required
The value is made by the computed field.
Setting one has no effect (no inverse method).
If you have no value on a purchase order, you end up in the confusing situation
where you can not save a new PO without setting a value to date_planned but,
after saving, the value is reset (no lines).
Do not block the creation of a new purchase order without lines
Fixes #23275
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/purchase/views/purchase_views.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/purchase/views/purchase_views.xml b/addons/purchase/views/purchase_views.xml index c1d351e4704..6d6080e1edf 100644 --- a/addons/purchase/views/purchase_views.xml +++ b/addons/purchase/views/purchase_views.xml @@ -264,7 +264,7 @@ <group> <label for="date_planned"/> <div> - <field name="date_planned" required="1" attrs="{'readonly': [('state', 'not in', ('draft', 'sent'))]}"/> + <field name="date_planned" attrs="{'readonly': [('state', 'not in', ('draft', 'sent'))]}"/> <button name="action_set_date_planned" type="object" states="draft,sent" string="Set date to all order lines" |
