From 7efe3bb2d809888cbc6c7e0f51a96a0ba4f7e4b1 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Thu, 31 Jul 2014 17:21:26 +0200 Subject: [PATCH] [FIX] point_of_sale: On product form : push on button 'Set a Custom Ean' on tab information raise an exception => Use a record action and clean python files --- addons/point_of_sale/point_of_sale.py | 12 ------------ addons/point_of_sale/point_of_sale_view.xml | 9 ++++++++- addons/point_of_sale/res_partner.py | 12 ------------ addons/point_of_sale/res_partner_view.xml | 2 +- addons/point_of_sale/res_users.py | 12 ------------ addons/point_of_sale/res_users_view.xml | 2 +- 6 files changed, 10 insertions(+), 39 deletions(-) diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index c8cf81d062c..7ba4bb98180 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -1379,16 +1379,4 @@ class product_template(osv.osv): 'available_in_pos': True, } - def edit_ean(self, cr, uid, ids, context): - return { - 'name': _("Assign a Custom EAN"), - 'type': 'ir.actions.act_window', - 'view_type': 'form', - 'view_mode': 'form', - 'res_model': 'pos.ean_wizard', - 'target' : 'new', - 'view_id': False, - 'context':context, - } - # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/point_of_sale/point_of_sale_view.xml b/addons/point_of_sale/point_of_sale_view.xml index 559fff5d7fc..7f43484603e 100644 --- a/addons/point_of_sale/point_of_sale_view.xml +++ b/addons/point_of_sale/point_of_sale_view.xml @@ -523,6 +523,13 @@ + + Edit Ean + pos.ean_wizard + new + form + form + product.template.form.inherit @@ -539,7 +546,7 @@ -