[FIX] website_sale: use correct variable

Error introduced during forward-port at a9471c4
This commit is contained in:
Christophe Simonis
2015-04-18 15:40:08 +02:00
parent 2328174cfd
commit f5a18a37ca
@@ -44,7 +44,7 @@ $('.oe_website_sale').each(function () {
product_ids.push(entry[0]);});
var qty = $(event.target).closest('form').find('input[name="add_qty"]').val();
openerp.jsonRpc("/shop/get_unit_price", 'call', {'product_ids': product_ids,'add_qty': parseInt(qty)})
ajax.jsonRpc("/shop/get_unit_price", 'call', {'product_ids': product_ids,'add_qty': parseInt(qty)})
.then(function (data) {
var current = product_dom.data("attribute_value_ids");
for(var j=0; j < current.length; j++){