diff --git a/addons/point_of_sale/static/src/js/devices.js b/addons/point_of_sale/static/src/js/devices.js index a6be16b3835..e36070414b6 100644 --- a/addons/point_of_sale/static/src/js/devices.js +++ b/addons/point_of_sale/static/src/js/devices.js @@ -184,6 +184,8 @@ function openerp_pos_devices(instance,module){ //module is instance.point_of_sal * price_with_tax: (number) the price paid for this orderline, tax included * price_without_tax: (number) the price paid for this orderline, without taxes * tax: (number) the price paid in taxes on this orderline + * product_description: (string) generic description of the product + * product_description_sale: (string) sales related information of the product * } * - paymentlines : list of paymentlines : * { diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index 2dd13638300..2c175d5b2b5 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -142,7 +142,8 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal return fetch( 'product.product', - ['name', 'list_price','price','pos_categ_id', 'taxes_id', 'ean13', 'to_weight', 'uom_id', 'uos_id', 'uos_coeff', 'mes_type'], + ['name', 'list_price','price','pos_categ_id', 'taxes_id', 'ean13', + 'to_weight', 'uom_id', 'uos_id', 'uos_coeff', 'mes_type', 'description_sale', 'description'], [['pos_categ_id','!=', false],['sale_ok','=',true]], {pricelist: self.get('shop').pricelist_id[0]} // context for price ); @@ -417,6 +418,8 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal price_with_tax : this.get_price_with_tax(), price_without_tax: this.get_price_without_tax(), tax: this.get_tax(), + product_description: this.get_product().get('description'), + product_description_sale: this.get_product().get('description_sale'), }; }, get_price_without_tax: function(){