We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efdce63 commit a60c3b7Copy full SHA for a60c3b7
pos_container_deposit/static/src/js/models.js
@@ -40,7 +40,11 @@ odoo.define("pos_container_deposit.models", function (require) {
40
* When adding a product with container deposit, add its container deposit product
41
**/
42
super.add_orderline(...arguments);
43
- if (line.container_deposit_product && !line.container_deposit_line) {
+ if (
44
+ line.container_deposit_product &&
45
+ !line.container_deposit_line &&
46
+ this.state === undefined
47
+ ) {
48
this.add_product(line.container_deposit_product, {
49
quantity: line.get_quantity(),
50
});
0 commit comments