From 59dfff33519db1bfa7bd7a0ce68feb6a67aa0231 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Tue, 28 Aug 2012 09:48:35 +0200 Subject: [PATCH 1/2] [FIX] account, generation of objects from templates: the set of taxes by default should be done as super user bzr revid: qdp-launchpad@openerp.com-20120828074835-od3blsdpgmzecbih --- addons/account/account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index 70731d1dbe1..72ce11f05ea 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -3333,10 +3333,10 @@ class wizard_multi_charts_accounts(osv.osv_memory): # write values of default taxes for product if obj_wizard.sale_tax and taxes_ref: - ir_values_obj.set(cr, uid, key='default', key2=False, name="taxes_id", company=company_id, + ir_values_obj.set(cr, 1, key='default', key2=False, name="taxes_id", company=company_id, models =[('product.product',False)], value=[taxes_ref[obj_wizard.sale_tax.id]]) if obj_wizard.purchase_tax and taxes_ref: - ir_values_obj.set(cr, uid, key='default', key2=False, name="supplier_taxes_id", company=company_id, + ir_values_obj.set(cr, 1, key='default', key2=False, name="supplier_taxes_id", company=company_id, models =[('product.product',False)], value=[taxes_ref[obj_wizard.purchase_tax.id]]) # Create Bank journals From 4731e8e38795e7bcff2955312c83ee25e14f97ef Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Tue, 28 Aug 2012 11:29:46 +0200 Subject: [PATCH 2/2] [FIX] sale/purchase: uniform the domains on the analytic account field on sale.order and purchase.order, to match the same domain than in invoices bzr revid: qdp-launchpad@openerp.com-20120828092946-4h63436hf9vvmnua --- addons/purchase/purchase_view.xml | 6 +++--- addons/sale/sale.py | 3 ++- addons/sale/sale_view.xml | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index 1c936055aff..dd325486b52 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -177,7 +177,7 @@ - + @@ -366,7 +366,7 @@ - + - + - +