← Back to team overview

openerp-india team mailing list archive

[Bug 1193779] Re: [stock_location][7.0][trunk] Pull flows do not create procurement internal moves

 

** Branch linked: lp:~therp-nl/ocb-
addons/7.0_lp1193779_internal_moves_not_created

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1193779

Title:
  [stock_location][7.0][trunk] Pull flows do not create procurement
  internal moves

Status in OpenERP Community Backports (Addons):
  Confirmed
Status in OpenERP Community Backports (Addons) 7.0 series:
  Confirmed
Status in OpenERP Addons (modules):
  New

Bug description:
  Important note: Reproduction of this bug depends on the order of
  workflow transition checks. If it does not reproduce, upgrading the
  'stock_location' module may change the evaluation order.

  Create a make-to-order pull flow for a stockable product A in location
  X from location Y. Create an order point for product A in X and run
  the scheduler.

  Procurement order state changes to 'Ready' but no move from Y to X is
  created. Only a move from 'Virtual locations/Procurement' to X.

  The problem is caused by the workflow transition
  'procurement.trans_confirm_mto_make_done'. It moves the procurement
  from  'confirm_mto' activity directly to 'ready' using the condition
  'not check_produce() and not check_buy()' and will not allow executing
  'stock_location.trans_confirm_mto_buy01' trasition which should have
  moved the procurement to 'move' state to call 'action_move_create()' .

  The solution is to change the condition of
  'procurement.trans_confirm_mto_make_done' to be 'not check_produce()
  and not check_buy() and not check_move'.

  Regards,

  Mohammad Alhashash

To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-addons/+bug/1193779/+subscriptions