openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #03490
[Merge] lp:~kinner-vachhani/openerp-fiscal-rules/fix-lp-1276519 into lp:openerp-fiscal-rules/6.1
Kinner Vachhani has proposed merging lp:~kinner-vachhani/openerp-fiscal-rules/fix-lp-1276519 into lp:openerp-fiscal-rules/6.1.
Requested reviews:
Account Core Editors (account-core-editors)
Related bugs:
Bug #1276519 in openerp-fiscal-rules: "unexpected keyword argument 'context'"
https://bugs.launchpad.net/openerp-fiscal-rules/+bug/1276519
For more details, see:
https://code.launchpad.net/~kinner-vachhani/openerp-fiscal-rules/fix-lp-1276519/+merge/204878
bug fix lp:1276519
--
https://code.launchpad.net/~kinner-vachhani/openerp-fiscal-rules/fix-lp-1276519/+merge/204878
Your team Account Core Editors is requested to review the proposed merge of lp:~kinner-vachhani/openerp-fiscal-rules/fix-lp-1276519 into lp:openerp-fiscal-rules/6.1.
=== modified file 'account_fiscal_position_rule/account_fiscal_position_rule.py'
--- account_fiscal_position_rule/account_fiscal_position_rule.py 2012-10-29 13:41:30 +0000
+++ account_fiscal_position_rule/account_fiscal_position_rule.py 2014-02-05 10:53:39 +0000
@@ -130,7 +130,7 @@
# In picking case the invoice_id can be empty but we need a value
# I only see this case, maybe we can move this code in fiscal_stock_rule
else:
- partner_addr = partner.address_get(['invoice'])
+ partner_addr = self.pool.get('res.partner').address_get(cr,uid,[partner_id],['invoice'])
addr_id = partner_addr['invoice'] and partner_addr['invoice'] or None
if addr_id:
addrs['invoice'] = obj_address.browse(cr, uid, addr_id, context=context)