Browse Source

Update the commit with the appropriate fix

pull/322/head
Martronic SA 6 years ago
committed by GitHub
parent
commit
c6456ce48e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      pos_pricelist/static/src/js/models.js

7
pos_pricelist/static/src/js/models.js

@ -206,8 +206,11 @@ odoo.define("pos_pricelist.models", function (require) {
models.Orderline.prototype.initialize = function (attr, options) {
_Orderline_initialize.apply(this, arguments);
if (options.product) {
var unit_price = this.order.pricelist ? this.product.get_price(this.order.pricelist,this.get_quantity()) : options.product.price;
this.set_unit_price(unit_price);
options.price ||
this.product.get_price(
this.order.pricelist,
this.get_quantity()
)
}
};
models.Orderline.prototype.init_from_JSON = function () {

Loading…
Cancel
Save