From 9ac4fd4bcc28eda37fa55ca2bf290f29017d2292 Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Thu, 20 Mar 2014 13:13:35 +0100 Subject: [PATCH] [IMP] Add ul for palletization on packaging and put dimensions on ul bzr revid: jco@openerp.com-20140320121335-cnjfecg115t8fa7t --- addons/product/product.py | 9 +++++---- addons/product/product_view.xml | 19 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/addons/product/product.py b/addons/product/product.py index 9169ec99ead..2d568e05bb6 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -219,6 +219,10 @@ class product_ul(osv.osv): _columns = { 'name' : fields.char('Name', select=True, required=True, translate=True), 'type' : fields.selection([('unit','Unit'),('pack','Pack'),('box', 'Box'), ('pallet', 'Pallet')], 'Type', required=True), + 'height': fields.float('Height', help='The height of the package'), + 'width': fields.float('Width', help='The width of the package'), + 'length': fields.float('Length', help='The length of the package'), + 'weight': fields.float('Empty Package Weight'), } @@ -937,6 +941,7 @@ class product_packaging(osv.osv): help="The total number of products you can put by pallet or box."), 'ul' : fields.many2one('product.ul', 'Type of Package', required=True), 'ul_qty' : fields.integer('Package by layer', help='The number of packages by layer'), + 'ul_container': fields.many2one('product.ul', 'Container Type of Package'), 'rows' : fields.integer('Number of Layers', required=True, help='The number of layers on a pallet or box'), 'product_id' : fields.many2one('product.product', 'Product', select=1, ondelete='cascade', required=True), @@ -944,10 +949,6 @@ class product_packaging(osv.osv): 'code' : fields.char('Code', help="The code of the transport unit."), 'weight': fields.float('Total Package Weight', help='The weight of a full package, pallet or box.'), - 'weight_ul': fields.float('Empty Package Weight'), - 'height': fields.float('Height', help='The height of the package'), - 'width': fields.float('Width', help='The width of the package'), - 'length': fields.float('Length', help='The length of the package'), } diff --git a/addons/product/product_view.xml b/addons/product/product_view.xml index 756fa6619a0..ef5c2cd71cd 100644 --- a/addons/product/product_view.xml +++ b/addons/product/product_view.xml @@ -180,15 +180,11 @@ - + - - - - @@ -585,6 +581,12 @@ + + + + + + @@ -626,6 +628,7 @@ + @@ -643,15 +646,11 @@ - + - - - -