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
7 additions and
5 deletions
-
pos_pricelist/static/src/js/models.js
|
|
@ -206,11 +206,13 @@ odoo.define("pos_pricelist.models", function (require) { |
|
|
|
models.Orderline.prototype.initialize = function (attr, options) { |
|
|
|
_Orderline_initialize.apply(this, arguments); |
|
|
|
if (options.product) { |
|
|
|
options.price || |
|
|
|
this.product.get_price( |
|
|
|
this.order.pricelist, |
|
|
|
this.get_quantity() |
|
|
|
) |
|
|
|
this.set_unit_price( |
|
|
|
options.price || |
|
|
|
this.product.get_price( |
|
|
|
this.order.pricelist, |
|
|
|
this.get_quantity() |
|
|
|
) |
|
|
|
); |
|
|
|
} |
|
|
|
}; |
|
|
|
models.Orderline.prototype.init_from_JSON = function () { |
|
|
|