-
+
@@ -913,6 +917,7 @@
+
@@ -1343,12 +1348,25 @@
+
+
+ All Operations
+ stock.picking.type
+ ir.actions.act_window
+ form
+ list,form
+
+
@@ -1624,6 +1642,7 @@
+
@@ -1863,5 +1882,24 @@
+
+
+ Pickings for Groups
+ stock.picking
+ form
+ tree,form
+ [('group_id','=',active_id)]
+
+
+ procurement.group.form.herited
+ procurement.group
+
+
+
+
+
+
+
+
diff --git a/addons/stock_location/stock_location.py b/addons/stock_location/stock_location.py
index 353b2d33b36..d313f782097 100644
--- a/addons/stock_location/stock_location.py
+++ b/addons/stock_location/stock_location.py
@@ -394,6 +394,16 @@ class stock_warehouse(osv.osv):
output_loc = wh_output_stock_loc
if warehouse.delivery_steps == 'ship_only':
output_loc = wh_stock_loc
+
+ #choose the next available color for the picking types of this warehouse
+ color = 0
+ all_used_color = self.pool.get('stock.picking.type').search_read(cr, uid, [('warehouse_id','!=',False), ('color','!=',False)], ['color'], order='color')
+ for nColor in all_used_color:
+ if nColor['color'] == color and color < 9:
+ color += 1
+ elif nColor['color'] > color or color == 9:
+ break;
+
in_type_id = picking_type_obj.create(cr, uid, vals={
'name': _('Receptions'),
'warehouse_id': new_id,
@@ -401,7 +411,8 @@ class stock_warehouse(osv.osv):
'auto_force_assign': True,
'sequence_id': in_seq_id,
'default_location_src_id': supplier_loc.id,
- 'default_location_dest_id': input_loc.id}, context=context)
+ 'default_location_dest_id': input_loc.id,
+ 'color' : color}, context=context)
out_type_id = picking_type_obj.create(cr, uid, vals={
'name': _('Delivery Orders'),
'warehouse_id': new_id,
@@ -409,7 +420,8 @@ class stock_warehouse(osv.osv):
'sequence_id': out_seq_id,
'delivery': True,
'default_location_src_id': output_loc.id,
- 'default_location_dest_id': customer_loc.id}, context=context)
+ 'default_location_dest_id': customer_loc.id,
+ 'color' : color}, context=context)
int_type_id = picking_type_obj.create(cr, uid, vals={
'name': _('Internal Transfers'),
'warehouse_id': new_id,
@@ -418,7 +430,8 @@ class stock_warehouse(osv.osv):
'default_location_src_id': wh_stock_loc.id,
'default_location_dest_id': wh_stock_loc.id,
'active': reception_steps != 'one_step',
- 'pack': False}, context=context)
+ 'pack': False,
+ 'color' : color}, context=context)
pack_type_id = picking_type_obj.create(cr, uid, vals={
'name': _('Pack'),
'warehouse_id': new_id,
@@ -427,7 +440,8 @@ class stock_warehouse(osv.osv):
'default_location_src_id': wh_pack_stock_loc.id,
'default_location_dest_id': output_loc.id,
'active': delivery_steps == 'pick_pack_ship',
- 'pack': True}, context=context)
+ 'pack': True,
+ 'color' : color}, context=context)
pick_type_id = picking_type_obj.create(cr, uid, vals={
'name': _('Pick'),
'warehouse_id': new_id,
@@ -436,7 +450,8 @@ class stock_warehouse(osv.osv):
'default_location_src_id': wh_stock_loc.id,
'default_location_dest_id': wh_pack_stock_loc.id,
'active': delivery_steps != 'ship_only',
- 'pack': False}, context=context)
+ 'pack': False,
+ 'color' : color}, context=context)
#write picking types on WH
vals = {
diff --git a/addons/stock_picking_wave/__openerp__.py b/addons/stock_picking_wave/__openerp__.py
index f98ce3bc1ba..e5882dfcad2 100644
--- a/addons/stock_picking_wave/__openerp__.py
+++ b/addons/stock_picking_wave/__openerp__.py
@@ -33,8 +33,11 @@ This module adds the picking wave option in warehouse management.
'data': ['security/ir.model.access.csv',
'stock_picking_wave_view.xml',
'stock_picking_wave_sequence.xml',
- 'wizard/picking_to_wave_view.xml'],
- 'demo': [],
+ 'wizard/picking_to_wave_view.xml',
+ ],
+ 'demo': [
+ 'stock_picking_wave_demo.xml',
+ ],
'installable': True,
'auto_install': False,
}
diff --git a/addons/stock_picking_wave/stock_picking_wave.py b/addons/stock_picking_wave/stock_picking_wave.py
index 7456995cffc..33148cac6f0 100644
--- a/addons/stock_picking_wave/stock_picking_wave.py
+++ b/addons/stock_picking_wave/stock_picking_wave.py
@@ -14,7 +14,6 @@ class stock_picking_wave(osv.osv):
'capacity_uom': fields.many2one('product.uom', 'Unit of Measure', help='The Unity Of Measure of the transport capacity'),
'wave_type_id': fields.many2one('stock.picking.wave.type', 'Picking Wave Type'),
'state': fields.selection([('in_progress', 'Running'), ('done', 'Done'), ('cancel', 'Cancelled')], required=True),
-
}
_defaults = {
diff --git a/addons/stock_picking_wave/stock_picking_wave_demo.xml b/addons/stock_picking_wave/stock_picking_wave_demo.xml
new file mode 100644
index 00000000000..ffcdeb4462c
--- /dev/null
+++ b/addons/stock_picking_wave/stock_picking_wave_demo.xml
@@ -0,0 +1,149 @@
+
+
+
+
+
+
+ Type Freeze
+
+
+
+ Type Dry
+
+
+
+
+ Picking Dry for John
+ 15
+
+ in_progress
+
+
+
+
+
+ Picking Freeze for Mickael
+ 600
+
+ in_progress
+
+
+
+
+
+
+ Picking #1
+ one
+ 2
+
+
+
+
+ Picking #2
+ one
+ assigned
+ 1
+
+
+
+
+ Picking #3
+ one
+ assigned
+ 1
+
+
+
+
+
+
+
+
+ Ice Cream
+
+
+
+ Dry
+
+
+
+ Ice Cream Chocolate
+ IC-CHOCO
+
+ 450.0
+ 300.0
+ consu
+
+
+ Ice Cream Chocolate with stucks
+
+
+ Ice Cream Vanilla
+ IC-VANI
+
+ 450.0
+ 300.0
+ consu
+
+
+ Ice Cream Vanilla
+
+
+ Speculoos
+ DRY-SPEC
+
+ 150.0
+ 100.0
+ consu
+
+
+ Speculoos - A belgian speciality
+
+
+
+
+
+
+ A first stock move
+
+
+
+
+
+
+
+ A second stock move
+
+
+
+
+
+
+
+ A third stock move
+
+
+
+
+
+
+
+
+ A fourth stock move
+
+
+
+
+
+
+
+
+