[IMP] point_of_sale: add 'name' of res.currency in pre-loaded fields
Fixes #7367
This commit is contained in:
parent
998ea74c64
commit
cee6ed33ac
|
@ -252,7 +252,7 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal
|
||||||
loaded: function(self, pricelists){ self.pricelist = pricelists[0]; },
|
loaded: function(self, pricelists){ self.pricelist = pricelists[0]; },
|
||||||
},{
|
},{
|
||||||
model: 'res.currency',
|
model: 'res.currency',
|
||||||
fields: ['symbol','position','rounding','accuracy'],
|
fields: ['name','symbol','position','rounding','accuracy'],
|
||||||
ids: function(self){ return [self.pricelist.currency_id[0]]; },
|
ids: function(self){ return [self.pricelist.currency_id[0]]; },
|
||||||
loaded: function(self, currencies){
|
loaded: function(self, currencies){
|
||||||
self.currency = currencies[0];
|
self.currency = currencies[0];
|
||||||
|
|
Loading…
Reference in New Issue