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 @@ -