[IMP] Add ul for palletization on packaging and put dimensions on ul
bzr revid: jco@openerp.com-20140320121335-cnjfecg115t8fa7t
This commit is contained in:
parent
f0ba091358
commit
9ac4fd4bcc
|
@ -219,6 +219,10 @@ class product_ul(osv.osv):
|
||||||
_columns = {
|
_columns = {
|
||||||
'name' : fields.char('Name', select=True, required=True, translate=True),
|
'name' : fields.char('Name', select=True, required=True, translate=True),
|
||||||
'type' : fields.selection([('unit','Unit'),('pack','Pack'),('box', 'Box'), ('pallet', 'Pallet')], 'Type', required=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."),
|
help="The total number of products you can put by pallet or box."),
|
||||||
'ul' : fields.many2one('product.ul', 'Type of Package', required=True),
|
'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_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,
|
'rows' : fields.integer('Number of Layers', required=True,
|
||||||
help='The number of layers on a pallet or box'),
|
help='The number of layers on a pallet or box'),
|
||||||
'product_id' : fields.many2one('product.product', 'Product', select=1, ondelete='cascade', required=True),
|
'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."),
|
'code' : fields.char('Code', help="The code of the transport unit."),
|
||||||
'weight': fields.float('Total Package Weight',
|
'weight': fields.float('Total Package Weight',
|
||||||
help='The weight of a full package, pallet or box.'),
|
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'),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -180,15 +180,11 @@
|
||||||
<newline/>
|
<newline/>
|
||||||
<field name="qty"/>
|
<field name="qty"/>
|
||||||
<field name="ul"/>
|
<field name="ul"/>
|
||||||
<field name="weight_ul"/>
|
|
||||||
<separator colspan="4" string="Palletization"/>
|
<separator colspan="4" string="Palletization"/>
|
||||||
|
<field name="ul_container"/>
|
||||||
<field name="ul_qty"/>
|
<field name="ul_qty"/>
|
||||||
<field name="rows"/>
|
<field name="rows"/>
|
||||||
<field name="weight"/>
|
<field name="weight"/>
|
||||||
<separator colspan="4" string="Pallet Dimension"/>
|
|
||||||
<field name="height"/>
|
|
||||||
<field name="width"/>
|
|
||||||
<field name="length"/>
|
|
||||||
</group>
|
</group>
|
||||||
<separator colspan="4" string="Description"/>
|
<separator colspan="4" string="Description"/>
|
||||||
<field name="name"/>
|
<field name="name"/>
|
||||||
|
@ -585,6 +581,12 @@
|
||||||
<field name="name"/>
|
<field name="name"/>
|
||||||
<field name="type"/>
|
<field name="type"/>
|
||||||
</group>
|
</group>
|
||||||
|
<group>
|
||||||
|
<field name="height"/>
|
||||||
|
<field name="width"/>
|
||||||
|
<field name="length"/>
|
||||||
|
<field name="weight"/>
|
||||||
|
</group>
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
@ -626,6 +628,7 @@
|
||||||
<field name="ean"/>
|
<field name="ean"/>
|
||||||
<field name="qty"/>
|
<field name="qty"/>
|
||||||
<field name="ul"/>
|
<field name="ul"/>
|
||||||
|
<field name="ul_container"/>
|
||||||
</tree>
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
@ -643,15 +646,11 @@
|
||||||
<newline/>
|
<newline/>
|
||||||
<field name="qty"/>
|
<field name="qty"/>
|
||||||
<field name="ul"/>
|
<field name="ul"/>
|
||||||
<field name="weight_ul"/>
|
|
||||||
<separator colspan="4" string="Palletization"/>
|
<separator colspan="4" string="Palletization"/>
|
||||||
|
<field name="ul_container"/>
|
||||||
<field name="ul_qty"/>
|
<field name="ul_qty"/>
|
||||||
<field name="rows"/>
|
<field name="rows"/>
|
||||||
<field name="weight"/>
|
<field name="weight"/>
|
||||||
<separator colspan="4" string="Pallet Dimension"/>
|
|
||||||
<field name="height"/>
|
|
||||||
<field name="width"/>
|
|
||||||
<field name="length"/>
|
|
||||||
<separator colspan="4" string="Other Info"/>
|
<separator colspan="4" string="Other Info"/>
|
||||||
<field colspan="4" name="name"/>
|
<field colspan="4" name="name"/>
|
||||||
</group>
|
</group>
|
||||||
|
|
Loading…
Reference in New Issue