Skip to content
Snippets Groups Projects
Unverified Commit 127c6d1f authored by GabbasovDinar's avatar GabbasovDinar Committed by Martin Trigaux
Browse files

[FIX] check mp_dirty to avoid repeated rendering

The patch fixes the issue related to repeated orderline rerendering. It means
that if products of the order were printed before, those will not be rendered
again when new updates of order is sent to the kitchen.

Closes #28577
parent 0b586677
Branches
Tags
No related merge requests found
......@@ -137,8 +137,10 @@ models.Orderline = models.Orderline.extend({
}
},
set_dirty: function(dirty) {
this.mp_dirty = dirty;
this.trigger('change',this);
if (this.mp_dirty !== dirty) {
this.mp_dirty = dirty;
this.trigger('change', this);
}
},
get_line_diff_hash: function(){
if (this.get_note()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment