[IMP] point_of_sale: show error popup when trying to edit tables offline

This commit is contained in:
Frédéric van der Essen
2015-02-02 16:29:32 +01:00
parent 2a3d054b0f
commit bec4e70829
@@ -238,6 +238,13 @@ openerp.pos_restaurant.load_floors = function(instance,module){
}
self.renderElement();
});
}, function(err,event) {
self.gui.show_popup('error',{
'title':_t('Changes could not be saved'),
'body': _t('Check your internet connection and access rights'),
});
event.stopPropagation();
event.preventDefault();
});
},
// destroy the table. We do not really destroy it, we set it