From 287935fc7f5ea615ce697ce363cca9ada74715c5 Mon Sep 17 00:00:00 2001 From: "Sbh (Openerp)" Date: Thu, 29 Mar 2012 18:25:50 +0530 Subject: [PATCH] [IMP]account: remove address_id bzr revid: sbh@tinyerp.com-20120329125550-l0fo45vbwnvf5p76 --- addons/account/account.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index d31e01944ad..27415cfffe6 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1963,8 +1963,8 @@ class account_tax(osv.osv): return self.pool.get('res.company').search(cr, uid, [('parent_id', '=', False)])[0] _defaults = { - 'python_compute': '''# price_unit\n# address: res.partner object or False\n# product: product.product object or None\n# partner: res.partner object or None\n\nresult = price_unit * 0.10''', - 'python_compute_inv': '''# price_unit\n# address: res.partner object or False\n# product: product.product object or False\n\nresult = price_unit * 0.10''', + 'python_compute': '''# price_unit\n# or False\n# product: product.product object or None\n# partner: res.partner object or None\n\nresult = price_unit * 0.10''', + 'python_compute_inv': '''# price_unit\n# product: product.product object or False\n\nresult = price_unit * 0.10''', 'applicable_type': 'true', 'type': 'percent', 'amount': 0, @@ -1994,10 +1994,9 @@ class account_tax(osv.osv): return res def _unit_compute(self, cr, uid, taxes, price_unit, product=None, partner=None, quantity=0): - taxes = self._applicable(cr, uid, taxes, price_unit, address_id, product, partner) + taxes = self._applicable(cr, uid, taxes, price_unit product, partner) res = [] cur_price_unit=price_unit - obj_partener_address = self.pool.get('res.partner') for tax in taxes: # we compute the amount for the current tax object and append it to the result data = {'id':tax.id,