[FIX] product: remove unused values

This commit is contained in:
Christophe Matthieu 2014-06-16 17:33:18 +02:00
parent 807453517a
commit 45a6012f22
2 changed files with 1 additions and 3 deletions

View File

@ -865,8 +865,6 @@ class product_product(osv.osv):
def _get_price_extra(self, cr, uid, ids, name, args, context=None):
result = dict.fromkeys(ids, False)
for product in self.browse(cr, uid, ids, context=context):
ctx = context.copy()
ctx.update(active_id=product.product_tmpl_id.id)
price_extra = 0.0
for variant_id in product.attribute_value_ids:
for price_id in variant_id.price_ids:

View File

@ -473,7 +473,7 @@ class website_sale(http.Controller):
@http.route(['/shop/checkout'], type='http', auth="public", website=True)
def checkout(self, **post):
cr, uid, context, pool = request.cr, request.uid, request.context, request.registry
cr, uid, context = request.cr, request.uid, request.context
order = request.website.sale_get_order(force_create=1, context=context)