summaryrefslogtreecommitdiff
path: root/addons/pos_cache
diff options
context:
space:
mode:
Diffstat (limited to 'addons/pos_cache')
-rw-r--r--addons/pos_cache/static/src/js/pos_cache.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/pos_cache/static/src/js/pos_cache.js b/addons/pos_cache/static/src/js/pos_cache.js
index 9f6bf6961ea..4f840082fb1 100644
--- a/addons/pos_cache/static/src/js/pos_cache.js
+++ b/addons/pos_cache/static/src/js/pos_cache.js
@@ -40,6 +40,7 @@ models.PosModel = models.PosModel.extend({
return records.then(function (products) {
self.db.add_products(_.map(products, function (product) {
product.categ = _.findWhere(self.product_categories, {'id': product.categ_id[0]});
+ product.pos = self;
return new models.Product({}, product);
}));
});