From 41ab601cef8336b557dc4348da119c8435ad5a87 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Wed, 7 Aug 2013 12:22:57 +0200 Subject: [PATCH] [IMP] usability in quant views bzr revid: qdp-launchpad@openerp.com-20130807102257-egzkuadf6k32v732 --- addons/stock/stock.py | 1 + addons/stock/stock_view.xml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 47e0cc9a822..7369d723ed1 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -152,6 +152,7 @@ class stock_quant(osv.osv): 'location_id': fields.many2one('stock.location', 'Location', required=True), 'qty': fields.float('Quantity', required=True, help="Quantity of products in this quant, in the default unit of measure of the product"), 'package_id': fields.many2one('stock.quant.package', string='Package', help="The package containing this quant"), + 'packaging_type_id': fields.related('package_id', 'packaging_id', type='many2one', relation='product.packaging', string='Type of packaging', store=True), 'reservation_id': fields.many2one('stock.move', 'Reserved for Move', help="Is this quant reserved for a stock.move?"), 'lot_id': fields.many2one('stock.production.lot', 'Lot'), 'cost': fields.float('Unit Cost'), diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml index 7327ecfce8e..da202f04d10 100644 --- a/addons/stock/stock_view.xml +++ b/addons/stock/stock_view.xml @@ -1478,8 +1478,10 @@ + + @@ -1522,6 +1524,9 @@ + + +