Permalink
Browse files

[IMP] point_of_sale: better merge detection

If sells
1. product A
2. product B
3. product A

the lines of product A were not merged

Closes #25540

closes odoo/odoo#26602
  • Loading branch information...
GabbasovDinar authored and mart-e committed Aug 27, 2018
1 parent 9e0906b commit e82a9ae0e1588799cb9bbe9062ef79cf8711b016
Showing with 2 additions and 1 deletion.
  1. +2 −1 addons/point_of_sale/static/src/js/models.js
@@ -2333,10 +2333,11 @@ exports.Order = Backbone.Model.extend({
}
if (to_merge_orderline){
to_merge_orderline.merge(line);
this.select_orderline(to_merge_orderline);
} else {
this.orderlines.add(line);
this.select_orderline(this.get_last_orderline());
}
this.select_orderline(this.get_last_orderline());
if(line.has_product_lot){
this.display_lot_popup();

0 comments on commit e82a9ae

Please sign in to comment.