Sanjay Gohel (Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-addons13-point-of-sale-apa-pricelist-sgo
into lp:~openerp-dev/openobject-addons/trunk-addons13-point-of-sale-apa.
Requested reviews:
Amit Patel (OpenERP) (apa-tiny)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-addons13-point-of-sale-apa-pricelist-sgo/+merge/128483
Hello sir,
I have change list price to price for point of sale which is consider
pricelist.
Thank You.
Sanjay Gohel
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-addons13-point-of-sale-apa-pricelist-sgo/+merge/128483
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-addons13-point-of-sale-apa.
=== modified file 'point_of_sale/static/src/js/models.js'
--- point_of_sale/static/src/js/models.js 2012-09-13 14:03:10 +0000
+++ point_of_sale/static/src/js/models.js 2012-10-08 13:00:30 +0000
@@ -333,7 +333,7 @@
this.pos = options.pos;
this.order = options.order;
this.product = options.product;
- this.price = options.product.get('list_price');
+ this.price = options.product.get('price');
this.quantity = 1;
this.discount = 0;
this.type = 'unit';
=== modified file 'point_of_sale/static/src/js/screens.js'
--- point_of_sale/static/src/js/screens.js 2012-09-18 13:37:32 +0000
+++ point_of_sale/static/src/js/screens.js 2012-10-08 13:00:30 +0000
@@ -530,7 +530,7 @@
},
get_product_price: function(){
var product = this.get_product();
- return (product ? product.get('list_price') : 0) || 0;
+ return (product ? product.get('price') : 0) || 0;
},
get_product_weight: function(){
return this.weight || 0;
=== modified file 'point_of_sale/static/src/xml/pos.xml'
--- point_of_sale/static/src/xml/pos.xml 2012-09-28 15:20:41 +0000
+++ point_of_sale/static/src/xml/pos.xml 2012-10-08 13:00:30 +0000
@@ -368,12 +368,12 @@
<img src='' /> <!-- the product thumbnail -->
<t t-if="!widget.model.get('to_weight')">
<span class="price-tag">
- <t t-esc="widget.format_currency(widget.model.get('list_price'))"/>
+ <t t-esc="widget.format_currency(widget.model.get('price'))"/>
</span>
</t>
<t t-if="widget.model.get('to_weight')">
<span class="price-tag">
- <t t-esc="widget.format_currency(widget.model.get('list_price'))+'/Kg'"/>
+ <t t-esc="widget.format_currency(widget.model.get('price'))+'/Kg'"/>
</span>
</t>
</div>
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp