[IMP] product: minor line move to match 5.0
bzr revid: odo@openerp.com-20100622104521-b4ynyl2e4rbff1sy
This commit is contained in:
parent
f386869927
commit
c45a7d6e89
|
@ -586,6 +586,7 @@ class product_packaging(osv.osv):
|
||||||
_name = "product.packaging"
|
_name = "product.packaging"
|
||||||
_description = "Packaging"
|
_description = "Packaging"
|
||||||
_rec_name = 'ean'
|
_rec_name = 'ean'
|
||||||
|
_order = 'sequence'
|
||||||
_columns = {
|
_columns = {
|
||||||
'sequence': fields.integer('Sequence', help="Gives the sequence order when displaying a list of packaging."),
|
'sequence': fields.integer('Sequence', help="Gives the sequence order when displaying a list of packaging."),
|
||||||
'name' : fields.text('Description', size=64),
|
'name' : fields.text('Description', size=64),
|
||||||
|
@ -609,7 +610,6 @@ class product_packaging(osv.osv):
|
||||||
'length': fields.float('Length', help='The length of the package'),
|
'length': fields.float('Length', help='The length of the package'),
|
||||||
}
|
}
|
||||||
|
|
||||||
_order = 'sequence'
|
|
||||||
|
|
||||||
def name_get(self, cr, uid, ids, context={}):
|
def name_get(self, cr, uid, ids, context={}):
|
||||||
if not len(ids):
|
if not len(ids):
|
||||||
|
|
Loading…
Reference in New Issue