Browse Source

[FIX] Support attribute prices on product variants (#103)

pull/109/head
Stefan Rijnhart (Opener) 9 years ago
committed by Pedro M. Baeza
parent
commit
04499be292
  1. 5
      pos_pricelist/static/src/js/models.js

5
pos_pricelist/static/src/js/models.js

@ -500,6 +500,9 @@ function pos_pricelist_models(instance, module) {
.hasOwnProperty(price_type.field)) {
price =
db.product_by_id[product.id][price_type.field];
if(price_type.field === 'list_price' && product.price_extra){
price += product.price_extra;
}
}
}
if (price !== false) {
@ -649,7 +652,7 @@ function pos_pricelist_models(instance, module) {
if (_.size(product_model) == 1) {
var product_index = parseInt(Object.keys(product_model)[0]);
pos_model.models[product_index].fields.push(
'categ_id', 'seller_ids'
'categ_id', 'seller_ids', 'price_extra'
);
}

Loading…
Cancel
Save