Skip to content

Commit

Permalink
Merge pull request #30 from yvaucher/7.0-pep8-e241-e123
Browse files Browse the repository at this point in the history
[PEP8]
  • Loading branch information
gurneyalex committed Oct 20, 2014
2 parents 87d8dca + d4b179d commit 62ad248
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion picking_dispatch/report/dispatch_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def _product_quantity(self, locations):
product_qty = {}
carrier = {}
moves = self.moves_by_loc[locations]
_logger.debug('move ids %s', moves)
_logger.debug('move ids %s', moves)
for move in moves:
p_code = move.product_id.default_code
products[p_code] = move.product_id
Expand Down
2 changes: 1 addition & 1 deletion picking_line_description/stock_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def onchange_product_id(
if context is None:
context = {}
res = super(stock_move, self).onchange_product_id(
cr, uid, ids, prod_id=prod_id, loc_id=loc_id,
cr, uid, ids, prod_id=prod_id, loc_id=loc_id,
loc_dest_id=loc_dest_id, partner_id=partner_id
)
if prod_id:
Expand Down
7 changes: 4 additions & 3 deletions product_customer_code_picking/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ def _get_product_customer_code(
move.picking_id.partner_id.commercial_partner_id.id)
product = move.product_id
if product and main_partner_id:
code_ids = product_customer_code_obj.search(cr, uid, [
('product_id', '=', product.id),
('partner_id', '=', main_partner_id),
code_ids = product_customer_code_obj.search(
cr, uid, [
('product_id', '=', product.id),
('partner_id', '=', main_partner_id),
], limit=1, context=context)
if code_ids:
data = product_customer_code_obj.read(
Expand Down

0 comments on commit 62ad248

Please sign in to comment.