[IMP] point_of_sale: move the 'to_weight' field from the pos.category to the product object

bzr revid: stw@openerp.com-20120529121556-q91gf18qf5a3uf1q
This commit is contained in:
Stephane Wirtel 2012-05-29 14:15:56 +02:00
parent 02f2aee066
commit e83f930dcb
2 changed files with 7 additions and 6 deletions

View File

@ -1140,10 +1140,6 @@ class pos_category(osv.osv):
'parent_id': fields.many2one('pos.category','Parent Category', select=True),
'child_id': fields.one2many('pos.category', 'parent_id', string='Children Categories'),
'sequence': fields.integer('Sequence', help="Gives the sequence order when displaying a list of product categories."),
'to_weight' : fields.boolean('To Weight', help="This category contains products that should be weighted, mainly used for the self-checkout interface"),
}
_defaults = {
'to_weight' : False,
}
pos_category()
@ -1174,8 +1170,13 @@ class product_product(osv.osv):
'product_image_small': fields.function(_get_small_image, string='Small Image', type="binary",
store = {
'product.product': (lambda self, cr, uid, ids, c={}: ids, ['product_image'], 10),
})
}),
'to_weight' : fields.boolean('To Weight', help="This category contains products that should be weighted, mainly used for the self-checkout interface"),
}
_defaults = {
'to_weight' : False,
}
product_product()

View File

@ -613,6 +613,7 @@
<group colspan="2" col="2" name="pos">
<separator string="Point of Sale" colspan="2"/>
<field name="pos_categ_id"/>
<field name="to_weight" />
</group>
</group>
</field>
@ -646,7 +647,6 @@
<field name="name"/>
<field name="parent_id"/>
<field name="sequence"/>
<field name="to_weight" />
</group>
</form>
</field>