[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:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user