[FIX] product: remove unused values
This commit is contained in:
parent
807453517a
commit
45a6012f22
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue