Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][PERF] stock_available_to_promise_release priority #721

Open
wants to merge 1 commit into
base: 14.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions stock_available_to_promise_release/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"version": "14.0.2.1.1",
"summary": "Release Operations based on available to promise",
"author": "Camptocamp, BCIM, Odoo Community Association (OCA)",
"maintainers": ["jbaudoux"],
"website": "https://github.com/OCA/wms",
"category": "Stock Management",
"depends": ["stock"],
Expand Down
4 changes: 3 additions & 1 deletion stock_available_to_promise_release/models/stock_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,9 @@ def _assign_picking_post_process(self, new=False):
super()._assign_picking_post_process(new)
priorities = self.mapped("move_dest_ids.picking_id.priority")
if priorities:
self.picking_id.write({"priority": max(priorities)})
self.picking_id.with_context(tracking_disable=True).write(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you can add a comment?

{"priority": max(priorities)}
)

def _get_chained_moves_iterator(self, chain_field):
"""Return an iterator on the moves of the chain.
Expand Down