Browse Source
Update the commit with the appropriate fix
pull/322/head
Martronic SA
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
2 deletions
-
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 () { |
|
|
|