Skip to content
Snippets Groups Projects
Commit 183c3cfd authored by Robin Heinz's avatar Robin Heinz
Browse files

[FIX] l10n_fr_pos_cert: bind disallowLineQuantityChange


When using several certification together, there was an issue
when we tried to modify the quantity of an orderline.
The "this" context was lost and we were unable to call the function
anymore.

In order to fix that, we bind the context when calling the function.

closes odoo/odoo#74162

Related: odoo/enterprise#19811
Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
parent 847f61a7
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ models.PosModel = models.PosModel.extend({
},
disallowLineQuantityChange() {
let result = _super_posmodel.disallowLineQuantityChange();
let result = _super_posmodel.disallowLineQuantityChange.bind(this)();
return this.is_french_country() || result;
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment