diff --git a/addons/point_of_sale/static/src/js/db.js b/addons/point_of_sale/static/src/js/db.js index 159c78d5865..849f2229755 100644 --- a/addons/point_of_sale/static/src/js/db.js +++ b/addons/point_of_sale/static/src/js/db.js @@ -177,7 +177,7 @@ export const PosDB = core.Class.extend({ if (product.description_sale) { str += "|" + product.description_sale; } - str = product.id + ":" + str.replace(/:/g, "") + "\n"; + str = product.id + ":" + str.replace(/[\n:]/g, "") + "\n"; return str; }, add_products: function (products) {