From e83f930dcb3c0529f6b91f468bac5c92665b4299 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Tue, 29 May 2012 14:15:56 +0200 Subject: [PATCH] [IMP] point_of_sale: move the 'to_weight' field from the pos.category to the product object bzr revid: stw@openerp.com-20120529121556-q91gf18qf5a3uf1q --- addons/point_of_sale/point_of_sale.py | 11 ++++++----- addons/point_of_sale/point_of_sale_view.xml | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index 637f6bd5a2f..75eba71b18b 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -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() diff --git a/addons/point_of_sale/point_of_sale_view.xml b/addons/point_of_sale/point_of_sale_view.xml index b65a662196c..cc718aea45d 100644 --- a/addons/point_of_sale/point_of_sale_view.xml +++ b/addons/point_of_sale/point_of_sale_view.xml @@ -613,6 +613,7 @@ + @@ -646,7 +647,6 @@ -