diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2016-07-27 11:01:34 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2016-07-27 15:19:28 +0200 |
| commit | 2cf80e00752c68e443b0cd442ee50f7d6daaa455 (patch) | |
| tree | edf5b2790c40071937c078aefb635a04f88dd250 /addons/purchase/purchase_view.xml | |
| parent | 931e5567b67841b8373679102ce74cb767ea33f9 (diff) | |
[IMP] purchase: set scheduled date of lines
Commit 4326d864 removes the inverse function of the `date_planned`. This
is necessary to avoid unexpected changes of the scheduled dates.
However, this removes the ability to set the scheduled dates of all
lines at once.
This commit introduces back the functionality thanks to a new button.
This way, the functionality remains without unexpected behavior.
Diffstat (limited to 'addons/purchase/purchase_view.xml')
| -rw-r--r-- | addons/purchase/purchase_view.xml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index 8fde844af80..89d0d8851d7 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -275,7 +275,15 @@ <page string="Deliveries & Invoices"> <group> <group> - <field name="date_planned" required="1"/> + <label for="date_planned"/> + <div> + <field name="date_planned" required="1" 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" + help="This changes the scheduled date of all order lines to the given date" + class="fa fa-calendar o_icon_button oe_edit_only"/> + </div> <field name="picking_type_id" domain="[('code','=','incoming')]" options="{'no_create': True}" context="{'special_shortened_wh_name': True}" groups="stock.group_stock_multi_locations"/> <field name="dest_address_id" groups="stock.group_stock_multi_locations" attrs="{'invisible': [('default_location_dest_id_usage', '!=', 'customer')], 'required': [('default_location_dest_id_usage', '=', 'customer')]}"/> <field name="default_location_dest_id_usage" invisible="1"/> |
