From 1d76fa0b1c7e6fa12323f15e91f058e8ff75af3b Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Tue, 29 Jul 2014 15:20:25 +0200 Subject: [PATCH 1/5] [FIX] product: some fields on the product template readonly when my product doesn't have any variant --- addons/product/product.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/addons/product/product.py b/addons/product/product.py index 94b431ec66f..01a1863c23a 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -418,13 +418,7 @@ class product_template(osv.osv): return self.is_product_variant(cr, uid, ids, name, arg, context=context) def is_product_variant(self, cr, uid, ids, name, arg, context=None): - prod = self.pool.get('product.product') - res = dict.fromkeys(ids, False) - ctx = dict(context, active_test=True) - for product in self.browse(cr, uid, ids, context=context): - res[product.id] = prod.search(cr, uid, [('product_tmpl_id','=',product.id)], context=ctx, count=True) == 1 - return res - + return dict.fromkeys(ids, False) def _product_template_price(self, cr, uid, ids, name, arg, context=None): plobj = self.pool.get('product.pricelist') From 87a20d1cc3cf4e1bac66de6a6537e16bf20ec861 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Thu, 31 Jul 2014 15:22:51 +0200 Subject: [PATCH 2/5] [FIX] website_sale: can't click on confirm order in mobile view --- addons/website_sale/views/templates.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml index 9efdb5159b5..d77f7528bc0 100644 --- a/addons/website_sale/views/templates.xml +++ b/addons/website_sale/views/templates.xml @@ -926,7 +926,9 @@ - Confirm +
From 7efe3bb2d809888cbc6c7e0f51a96a0ba4f7e4b1 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Thu, 31 Jul 2014 17:21:26 +0200 Subject: [PATCH 3/5] [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 @@ -
- + - Ship to a different address - +
+ +
-
+

Shipping Information

- - + +
- - + +
- - + +
- - + +
- - + +
- - @@ -917,8 +929,8 @@
- -