Skip to content
Snippets Groups Projects
user avatar
Aurélien (avd) authored
stock.orderpoint._post_process_scheduler confirms
productions after procurements have been run.

This was introduced to avoid conflict between
procurements, conflicts that can happen e.g. in
the purchase_mrp module.

However, currently action_confirm might
also be called on done or cancelled productions.
That can happen if there are already been lots
of procurements for the same product/orderpoint,
i.e. MO with the same values have been created multiple times.

To avoid this, add ('state', '=', 'draft' in the search_domain.

opw-2666960

closes odoo/odoo#79403

Signed-off-by: default avatarArnold Moyaux <arm@odoo.com>
11c7b92f
History
Name Last commit Last update