Merge lp:~openerp-canada/openobject-addons/lp667920 into lp:openobject-addons

Status: Rejected
Rejected by: Fabien (Open ERP)
Proposed branch: lp:~openerp-canada/openobject-addons/lp667920
Merge into: lp:openobject-addons
Diff against target: 26 lines (+4/-3)
1 file modified
account/account.py (+4/-3)
To merge this branch: bzr merge lp:~openerp-canada/openobject-addons/lp667920
Reviewer Review Type Date Requested Status
Fabien (Open ERP) Disapprove
Review via email: mp+42123@code.launchpad.net

Description of the change

Fix bug lp667920

To post a comment you must log in.
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

See how to do in the related bug.

No need to patch openerp for this.

review: Disapprove

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'account/account.py'
--- account/account.py 2010-11-26 16:13:59 +0000
+++ account/account.py 2010-11-29 15:31:35 +0000
@@ -1848,7 +1848,10 @@
1848 if tax.child_ids:1848 if tax.child_ids:
1849 if tax.child_depend:1849 if tax.child_depend:
1850 latest = res.pop()1850 latest = res.pop()
1851 amount = amount21851 if tax.include_base_amount:
1852 amount = cur_price_unit + amount2
1853 else:
1854 amount = amount2
1852 child_tax = self._unit_compute(cr, uid, tax.child_ids, amount, address_id, product, partner, quantity)1855 child_tax = self._unit_compute(cr, uid, tax.child_ids, amount, address_id, product, partner, quantity)
1853 res.extend(child_tax)1856 res.extend(child_tax)
1854 if tax.child_depend:1857 if tax.child_depend:
@@ -1865,8 +1868,6 @@
1865 r[name+'_sign'] = latest[name+'_sign']1868 r[name+'_sign'] = latest[name+'_sign']
1866 r['amount'] = data['amount']1869 r['amount'] = data['amount']
1867 latest[name+'_code_id'] = False1870 latest[name+'_code_id'] = False
1868 if tax.include_base_amount:
1869 cur_price_unit+=amount2
1870 return res1871 return res
18711872
1872 def compute_all(self, cr, uid, taxes, price_unit, quantity, address_id=None, product=None, partner=None):1873 def compute_all(self, cr, uid, taxes, price_unit, quantity, address_id=None, product=None, partner=None):
18731874
=== modified file 'account/installer.py'

Subscribers

People subscribed via source and target branches

to all changes: