Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
4669 Visualizações

Hey all  ,


I am doing some point of sale customization however i am not sure how to inherit to the point of sale js file .


the current point of sale module js file code :


{

model: 'product.product',

fields: ['display_name', 'list_price','price','pos_categ_id', 'taxes_id', 'ean13', 'default_code',

'to_weight', 'uom_id', 'uos_id', 'uos_coeff', 'mes_type', 'description_sale', 'description',

'product_tmpl_id'],

domain: [['sale_ok','=',true],['available_in_pos','=',true]],

context: function(self){ return { pricelist: self.pricelist.id, display_default_code: false }; },

loaded: function(self, products){

self.db.add_products(products);

},

},

But  i want add a field in product.product , so for example : 


{

model: 'product.product',

fields: ['display_name', 'NEW_FIELD','list_price','price','pos_categ_id', 'taxes_id', 'ean13', 'default_code',

'to_weight', 'uom_id', 'uos_id', 'uos_coeff', 'mes_type', 'description_sale', 'description',

'product_tmpl_id'],

domain: [['sale_ok','=',true],['available_in_pos','=',true]],

context: function(self){ return { pricelist: self.pricelist.id, display_default_code: false }; },

loaded: function(self, products){

self.db.add_products(products);

},

},


How can i go about inheriting this new field in with out completely overriding the point of sale / models.js

Avatar
Cancelar
Melhor resposta

view this blog for some hint... pospopup post..

https://odooforyou.wordpress.com/

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
abr. 15
6405
1
abr. 24
2013
0
jun. 22
1821
1
fev. 22
5231
2
dez. 16
5526