diff options
| author | amoyaux <arm@odoo.com> | 2017-08-28 16:41:06 +0200 |
|---|---|---|
| committer | amoyaux <arm@odoo.com> | 2017-08-28 17:01:05 +0200 |
| commit | 11244b5df7a3d22f5c2bd70297453cd0afc0e9b6 (patch) | |
| tree | a56f907e39462b7eddd49480772204209a0dc0ed | |
| parent | 6551c0bdd795b8ce1188d439dc4046203fedd657 (diff) | |
[FIX] stock: calendar view should not be removed
I deleted calendar view from picking because I thought it was not
used anymore. However it was used in the menu item action thus it
returns a traceback when used and the picking menu was not accessible
anymore.
This commit revert commit f4f8bbaf9ccd8856172ddd5090345134b27bb51a
and fix the view instead by using schedule date instead of min_date
| -rw-r--r-- | addons/stock/views/stock_picking_views.xml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/addons/stock/views/stock_picking_views.xml b/addons/stock/views/stock_picking_views.xml index 41ae7d7035a..c8c99af328a 100644 --- a/addons/stock/views/stock_picking_views.xml +++ b/addons/stock/views/stock_picking_views.xml @@ -124,6 +124,19 @@ <menuitem id="menu_pickingtype" name="Operations Types" parent="stock.menu_warehouse_config" action="action_picking_type_list" sequence="4" groups="stock.group_stock_multi_locations"/> + <record model="ir.ui.view" id="stock_picking_calendar"> + <field name="name">stock.picking.calendar</field> + <field name="model">stock.picking</field> + <field name="priority" eval="2"/> + <field name="arch" type="xml"> + <calendar string="Calendar View" date_start="scheduled_date" color="partner_id"> + <field name="origin"/> + <field name="picking_type_id"/> + <field name="partner_id"/> + </calendar> + </field> + </record> + <record model="ir.ui.view" id="stock_picking_kanban"> <field name="name">stock.picking.kanban</field> <field name="model">stock.picking</field> |
