From 2b248e655c48a3748baa5940747cd535589df656 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Sun, 17 Oct 2010 15:09:11 +0200 Subject: [PATCH] useability bzr revid: fp@tinyerp.com-20101017130911-dnffkeld59c4vah2 --- addons/account/account.py | 2 +- addons/account/installer.py | 6 +-- addons/delivery/delivery_data.xml | 49 +++++++++++++++++ addons/delivery/delivery_demo.xml | 54 +------------------ addons/sale/sale_view.xml | 2 +- addons/sale/stock_view.xml | 2 + .../sale/wizard/sale_make_invoice_advance.py | 4 +- .../sale/wizard/sale_make_invoice_advance.xml | 26 ++++----- 8 files changed, 72 insertions(+), 73 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index 5de913c45a7..bdd6b37b988 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1605,7 +1605,7 @@ class account_tax_code(osv.osv): if isinstance(ids, (int, long)): ids = [ids] reads = self.read(cr, uid, ids, ['name','code'], context, load='_classic_write') - return [(x['id'], (x['code'] and x['code'] + ' - ' or '') + x['name']) \ + return [(x['id'], (x['code'] and (x['code'] + ' - ') or '') + x['name']) \ for x in reads] def _default_company(self, cr, uid, context={}): diff --git a/addons/account/installer.py b/addons/account/installer.py index b85b2dc21e2..b689697d7a8 100644 --- a/addons/account/installer.py +++ b/addons/account/installer.py @@ -604,8 +604,7 @@ class account_installer(osv.osv_memory): new_paid_tax_code = self.pool.get('account.tax.code').create(cr, uid, vals_paid_tax_code) sales_tax = obj_tax.create(cr, uid, - {'name':'TAX%s%%'%(s_tax*100), - 'description':'TAX%s%%'%(s_tax*100), + {'name':'TAX %s%%'%(s_tax*100), 'amount':s_tax, 'base_code_id':new_tax_code, 'tax_code_id':new_paid_tax_code, @@ -640,8 +639,7 @@ class account_installer(osv.osv_memory): new_paid_tax_code = self.pool.get('account.tax.code').create(cr, uid, vals_paid_tax_code) purchase_tax = obj_tax.create(cr, uid, - {'name':'TAX%s%%'%(p_tax*100), - 'description':'TAX%s%%'%(p_tax*100), + {'name':'TAX %s%%'%(p_tax*100), 'amount':p_tax, 'base_code_id':new_tax_code, 'tax_code_id':new_paid_tax_code, diff --git a/addons/delivery/delivery_data.xml b/addons/delivery/delivery_data.xml index 97e841ead45..ff0c90ad193 100644 --- a/addons/delivery/delivery_data.xml +++ b/addons/delivery/delivery_data.xml @@ -5,5 +5,54 @@ property_delivery_carrier + + + + + The Poste + + + default + + + + + + + Delivery by Poste + service + + + + + + + The Poste + + + + + + + + The Poste - Pricelist + + + + Weight <= 5kg + + + + + + + Weight > 5kg + + >= + + + + + diff --git a/addons/delivery/delivery_demo.xml b/addons/delivery/delivery_demo.xml index 2c05d4567a5..f247c53ed82 100644 --- a/addons/delivery/delivery_demo.xml +++ b/addons/delivery/delivery_demo.xml @@ -1,64 +1,14 @@ - - - - The Poste - http://www.openerp.com - - - Fabien Pinckaers - default - - - - - - - Delivery by Poste - service - - - - - - - The Poste - Express - - - - - - - - The Poste Express - Pricelist - - - Franco, price >= 300 - + Free if price >= 300 + >= price - - Weight <= 250 - - - - - - - Weight > 250 - - >= - - - - - diff --git a/addons/sale/sale_view.xml b/addons/sale/sale_view.xml index 08fdd8cafcd..e5357ee0e04 100644 --- a/addons/sale/sale_view.xml +++ b/addons/sale/sale_view.xml @@ -198,7 +198,7 @@