[FIX] point_of_sale: reset NumberBuffer after scanning a barcode
Before this commit: if you scan a barcode to add a product and then change its quantity, it will use previos `NumberBuffer` that have been used before. The solution is to reset the `NumberBuffer` after scanning a barcode. opw-3170518 closes odoo/odoo#112765 X-original-commit: 1100b518f54c0b8cf29a312e768c1494635059a6 Signed-off-by: Trinh Jacky (trj) <trj@odoo.com> Signed-off-by: Pedram Bi Ria (pebr) <pebr@odoo.com>
This commit is contained in:
@@ -299,6 +299,7 @@ export class ProductScreen extends ControlButtonsMixin(LegacyComponent) {
|
||||
});
|
||||
}
|
||||
this.currentOrder.add_product(product, options);
|
||||
this.numberBuffer.reset();
|
||||
}
|
||||
_barcodePartnerAction(code) {
|
||||
const partner = this.env.pos.db.get_partner_by_barcode(code.code);
|
||||
|
||||
Reference in New Issue
Block a user