openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #04361
[Merge] lp:~camptocamp/purchase-wkfl/7.0-browse_record_error-1287159 into lp:purchase-wkfl
Guewen Baconnier @ Camptocamp has proposed merging lp:~camptocamp/purchase-wkfl/7.0-browse_record_error-1287159 into lp:purchase-wkfl.
Commit message:
[FIX] browse_record given to create() instead of the integer id
Requested reviews:
Purchase Core Editors (purchase-core-editors)
For more details, see:
https://code.launchpad.net/~camptocamp/purchase-wkfl/7.0-browse_record_error-1287159/+merge/209056
Fixes lp:1287159
--
https://code.launchpad.net/~camptocamp/purchase-wkfl/7.0-browse_record_error-1287159/+merge/209056
Your team Purchase Core Editors is requested to review the proposed merge of lp:~camptocamp/purchase-wkfl/7.0-browse_record_error-1287159 into lp:purchase-wkfl.
=== modified file 'purchase_landed_costs/purchase.py'
--- purchase_landed_costs/purchase.py 2013-12-12 15:34:53 +0000
+++ purchase_landed_costs/purchase.py 2014-03-03 12:38:32 +0000
@@ -550,7 +550,7 @@
po = (landed_cost.purchase_order_id or
landed_cost.purchase_order_line_id.order_id)
currency_id = landed_cost.purchase_order_id.pricelist_id.currency_id.id
- fiscal_position = po.fiscal_position or False
+ fiscal_position = po.fiscal_position.id if po.fiscal_position else False
journal_obj = self.pool.get('account.journal')
journal_ids = journal_obj.search(
cr, uid,
Follow ups