From a8c6e666fa0a7844cd4911e804e9ff59e11adb17 Mon Sep 17 00:00:00 2001 From: Julien Legros Date: Fri, 24 Jul 2015 12:01:55 +0200 Subject: [PATCH] [FIX] point_of_sale: load disabled uoms this is needed when selling products with a disabled uom --- addons/point_of_sale/static/src/js/models.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index 36d2bee0d15..f647a679571 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -151,6 +151,7 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal model: 'product.uom', fields: [], domain: null, + context: function(self){ return { active_test: false }; }, loaded: function(self,units){ self.units = units; var units_by_id = {};