From 735a20f32018ee28cd29e6843077935cf173913a Mon Sep 17 00:00:00 2001 From: ggh-openerp Date: Wed, 17 Apr 2013 10:57:37 +0530 Subject: [PATCH] [REM] Remove the onchange pos available method bzr revid: ggh@tinyerp.com-20130417052737-4t5ejcwzkkkgfqdj --- addons/point_of_sale/point_of_sale.py | 8 -------- addons/point_of_sale/point_of_sale_view.xml | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index 33971a65f90..c50bd8cf31c 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -1340,14 +1340,6 @@ class product_product(osv.osv): 'to_weight' : fields.boolean('To Weight', help="Check if the product should be weighted (mainly used with self check-out interface)."), } - def onchange_available_pos(self, cr, uid, ids, available_in_pos=None, context=None): - proxy = self.pool.get('ir.model.data') - category_id = False - if ids and available_in_pos: - for pos_id in self.browse(cr,uid,ids,context=context): - if pos_id.pos_categ_id: - category_id = pos_id.pos_categ_id.id - return {'value': {'pos_categ_id': category_id}} _defaults = { 'to_weight' : False, diff --git a/addons/point_of_sale/point_of_sale_view.xml b/addons/point_of_sale/point_of_sale_view.xml index b8758033237..84569afab35 100644 --- a/addons/point_of_sale/point_of_sale_view.xml +++ b/addons/point_of_sale/point_of_sale_view.xml @@ -614,7 +614,7 @@ - +