Public Access
Rename location field to INFO, strip .odoo4projects.com from server value
This commit is contained in:
@@ -647,7 +647,7 @@ var si = 0,
|
|||||||
basket.type = 'hidden';
|
basket.type = 'hidden';
|
||||||
basket.name = 'basket';
|
basket.name = 'basket';
|
||||||
var item = { product_id: productId, qty: 1 };
|
var item = { product_id: productId, qty: 1 };
|
||||||
if (location) { item.location = location; }
|
if (location) { item.INFO = location.replace('.odoo4projects.com', ''); }
|
||||||
basket.value = JSON.stringify([item]);
|
basket.value = JSON.stringify([item]);
|
||||||
console.log('Buy basket:', basket.value);
|
console.log('Buy basket:', basket.value);
|
||||||
form.appendChild(basket);
|
form.appendChild(basket);
|
||||||
|
|||||||
Reference in New Issue
Block a user