Skip to content

Commit

Permalink
[FIX] point_of_sale: also clone orderline price
Browse files Browse the repository at this point in the history
Otherwise during e.g. bill splitting of an orderline which had it's
price overridden you end up with the original price again.

Fixes odoo#17810
Closes odoo#17811
  • Loading branch information
Invitu authored and jorenvo committed Jul 7, 2017
1 parent 9cc799f commit 7102fcf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/point_of_sale/static/src/js/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,7 @@ exports.Orderline = Backbone.Model.extend({
orderline.quantity = this.quantity;
orderline.quantityStr = this.quantityStr;
orderline.discount = this.discount;
orderline.price = this.price;
orderline.type = this.type;
orderline.selected = false;
return orderline;
Expand Down

0 comments on commit 7102fcf

Please sign in to comment.