[FIX] point_of_sale: order product.product consistently with backend

In the backend product.product records are not just ordered on their
name, they are first ordered on default_code and then on name. The POS
should order records the same way.

opw-672284
This commit is contained in:
Joren Van Onder
2016-03-17 14:01:20 +01:00
parent 9a2e3c2987
commit 1ec6a384fa
+1 -1
View File
@@ -317,7 +317,7 @@ exports.PosModel = Backbone.Model.extend({
fields: ['display_name', 'list_price','price','pos_categ_id', 'taxes_id', 'barcode', 'default_code',
'to_weight', 'uom_id', 'description_sale', 'description',
'product_tmpl_id'],
order: ['sequence','name'],
order: ['sequence','default_code','name'],
domain: [['sale_ok','=',true],['available_in_pos','=',true]],
context: function(self){ return { pricelist: self.pricelist.id, display_default_code: false }; },
loaded: function(self, products){