[imp] currency conversion - yet incomplete
bzr revid: rlo@openerp.com-20120327141422-9grv8dw70q89ayx5
This commit is contained in:
parent
b6fa154cbc
commit
e515089023
|
@ -40,7 +40,7 @@ Main features :
|
|||
""",
|
||||
'author': 'OpenERP SA',
|
||||
'images': ['images/cash_registers.jpeg', 'images/pos_analysis.jpeg','images/register_analysis.jpeg','images/sale_order_pos.jpeg','images/product_pos.jpeg'],
|
||||
'depends': ['sale'],
|
||||
'depends': ['sale','account'],
|
||||
'init_xml': [],
|
||||
|
||||
'update_xml': [
|
||||
|
|
|
@ -1249,6 +1249,7 @@ openerp.point_of_sale = function(db) {
|
|||
id = 0;
|
||||
}
|
||||
c = pos.categories[id];
|
||||
currency = pos.get('currency');
|
||||
this.categoryView.ancestors = c.ancestors;
|
||||
this.categoryView.children = c.children;
|
||||
this.categoryView.renderElement();
|
||||
|
@ -1307,6 +1308,7 @@ openerp.point_of_sale = function(db) {
|
|||
// product with a specific price - specified into the barcode
|
||||
barcode = barcode.substring(2,5);
|
||||
// TODO conversion euro - old local currencies
|
||||
new db.web.Model('res.currency').get_func('_get_conversion_rate')(['FRF', 'EUR']).pipe(function(result){});
|
||||
price = Number(barcode.substring(7,5))/100;
|
||||
weight = '';
|
||||
} else if (barcode.substring(0,2) in ['21','23','27','29','25']) {
|
||||
|
|
Loading…
Reference in New Issue