Merge lp:~openerp-dev/openobject-addons/trunk-bug-817430-ara into lp:openobject-addons

Proposed by Ashvin Rathod (OpenERP)
Status: Rejected
Rejected by: Olivier Dony (Odoo)
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-817430-ara
Merge into: lp:openobject-addons
Diff against target: 16 lines (+2/-2)
1 file modified
account/account.py (+2/-2)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-817430-ara
Reviewer Review Type Date Requested Status
Olivier Dony (Odoo) Disapprove
Mustufa Rangwala (Open ERP) (community) Approve
qdp (OpenERP) Pending
Review via email: mp+69977@code.launchpad.net

Description of the change

Hello,

Fix: Multicompany - Product Default Tax (ir.values) only for one company?

Thanks,
ara

To post a comment you must log in.
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) :
review: Approve
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Hello,

I'm rejecting this merge proposal, not because it's bad, but because the bug should be fully fixed by the framework. The way ir.values.set() was calling by the account module is correct, so there is no reason to fix addons.
If the server is fixed properly, this patch will not be needed at all.

A complete server fix is currently available as a merge proposal, btw: https://code.launchpad.net/~openerp-dev/openobject-server/trunk-cleanup-ir-values/+merge/73809

Thanks for your help!

review: Disapprove

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/account.py'
2--- account/account.py 2011-07-18 08:34:24 +0000
3+++ account/account.py 2011-08-01 10:28:32 +0000
4@@ -3060,10 +3060,10 @@
5 obj_ac_fp.create(cr, uid, vals_acc)
6
7 if obj_multi.sale_tax:
8- ir_values_obj.set(cr, uid, key='default', key2=False, name="taxes_id", company=obj_multi.company_id.id,
9+ ir_values_obj.set(cr, uid, key='default', key2=False, replace=False, name="taxes_id", company=obj_multi.company_id.id,
10 models =[('product.product',False)], value=[tax_template_to_tax[obj_multi.sale_tax.id]])
11 if obj_multi.purchase_tax:
12- ir_values_obj.set(cr, uid, key='default', key2=False, name="supplier_taxes_id", company=obj_multi.company_id.id,
13+ ir_values_obj.set(cr, uid, key='default', key2=False, replace=False, name="supplier_taxes_id", company=obj_multi.company_id.id,
14 models =[('product.product',False)], value=[tax_template_to_tax[obj_multi.purchase_tax.id]])
15
16 wizard_multi_charts_accounts()

Subscribers

People subscribed via source and target branches

to all changes: