openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #02641
lp:~camptocamp-reviewer/purchase-wkfl/purchase_landed_costs-jge into lp:purchase-wkfl
Joël Grand-Guillaume @ camptocamp has proposed merging lp:~camptocamp-reviewer/purchase-wkfl/purchase_landed_costs-jge into lp:purchase-wkfl.
Requested reviews:
Purchase Core Editors (purchase-core-editors)
For more details, see:
https://code.launchpad.net/~camptocamp-reviewer/purchase-wkfl/purchase_landed_costs-jge/+merge/200510
Hi,
Here is a little fix for a stupid mistake on the call to _logger.
Regards,
Joël
--
https://code.launchpad.net/~camptocamp-reviewer/purchase-wkfl/purchase_landed_costs-jge/+merge/200510
Your team Purchase Core Editors is requested to review the proposed merge of lp:~camptocamp-reviewer/purchase-wkfl/purchase_landed_costs-jge into lp:purchase-wkfl.
=== modified file 'purchase_landed_costs/stock.py'
--- purchase_landed_costs/stock.py 2013-12-12 15:34:53 +0000
+++ purchase_landed_costs/stock.py 2014-01-06 10:45:16 +0000
@@ -62,10 +62,10 @@
# standard_price instead of converting the result in EUR
# Reference : https://bugs.launchpad.net/ocb-addons/+bug/1238525
res = super(stock_partial_picking, self)._product_cost_for_average_update(cr, uid, move)
- self._logger.debug('res stock_partial_picking `%s`', res)
+ _logger.debug('Before res stock_partial_picking `%s`', res)
# Re-take the cost from the PO line landed_costs field
if move.purchase_line_id:
res['cost'] = (move.purchase_line_id.landed_costs /
move.purchase_line_id.product_qty)
- self._logger.debug('res stock_partial_picking `%s`', res)
+ _logger.debug('After res stock_partial_picking `%s`', res)
return res
Follow ups