diff --git a/addons/stock/stock.py b/addons/stock/stock.py
index 4e6de6310cc..887cc9479a1 100644
--- a/addons/stock/stock.py
+++ b/addons/stock/stock.py
@@ -436,6 +436,14 @@ class stock_picking(osv.osv):
res.add(move.picking_id.id)
return list(res)
+ def _get_pack_operation_exist(self, cr, uid, ids, field_name, arg, context=None):
+ res = {}
+ for pick in self.browse(cr, uid, ids, context=context):
+ res[pick.id] = False
+ if pick.pack_operation_ids:
+ res[pick.id] = True
+ return res
+
_columns = {
'name': fields.char('Reference', size=64, select=True, states={'done':[('readonly', True)], 'cancel':[('readonly',True)]}),
'origin': fields.char('Source Document', size=64, states={'done':[('readonly', True)], 'cancel':[('readonly',True)]}, help="Reference of the document", select=True),
@@ -469,6 +477,7 @@ class stock_picking(osv.osv):
'partner_id': fields.many2one('res.partner', 'Partner', states={'done':[('readonly', True)], 'cancel':[('readonly',True)]}),
'company_id': fields.many2one('res.company', 'Company', required=True, select=True, states={'done':[('readonly', True)], 'cancel':[('readonly',True)]}),
'pack_operation_ids': fields.one2many('stock.pack.operation', 'picking_id', string='Related Packing Operations'),
+ 'pack_operation_exist': fields.function(_get_pack_operation_exist, type='boolean', string='Pack Operation Exists?', help='technical field for attrs in view'),
'picking_type_id': fields.many2one('stock.picking.type', 'Picking Type', required=True),
# Used to search on pickings
diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml
index 25de91d6cd3..95cd2e49a1f 100644
--- a/addons/stock/stock_view.xml
+++ b/addons/stock/stock_view.xml
@@ -586,7 +586,7 @@
-
+
@@ -608,8 +608,10 @@
-
-
+
+
+
+
@@ -619,9 +621,6 @@
-
-
-
@@ -1490,16 +1489,12 @@
-
-
Quants
{'search_default_productgroup':'1'}
stock.quant
-
-
stock.quant.form
stock.quant