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

[16.0] stock_release_channel: pre-migration as not installable #600

Merged
merged 31 commits into from
Mar 10, 2023

Conversation

simahawk
Copy link
Contributor

@simahawk simahawk commented Mar 10, 2023

Migration wip here #493

guewen and others added 30 commits March 7, 2023 15:38
When using stock_dynamic_routing, the moves are reassigned to a new
picking (with StockMove._assign_picking()), and the original picking is
cancelled if it contains no moves anymore. As we want to keep

Note: maybe we should extend the assign picking mechanism to never
assign a move in a picking with a different release channel (channel is
empty or identical). As we extend it in
stock_picking_group_by_partner_by_carrier, it should be a new
dependency/glue module on it, or better, only extract the hook added
by stock_picking_group_by_partner_by_carrier for the domain in a base
module, used by both.
Reverts previous commit and re-assign the release channel in case
the released transfer has changed / moves have been released partially.
The rules result may change and we want them in the proper channel.
As these numbers are estimates (all moves even if not ready)
* Use new style of progress bars
* Add progressbar for showing progress of transfers *before* the
  outgoing one (chained ones)
* Improve CSS and labels
The "code" can be read only to base.group_system.
It will be used later the automatic release by commercial partner.
The initial automatic release allows to release a number of transfers N
up to a max of X in progress transfers at a time.

Introduce a selection of types of automatic release, with, alongside the
former "Max", a new grouping by commercial partner.

When using this automatic release, we take the first (by priority)
transfer ready to release, and all the transfers with the same
commercial partner, then release this whole group of transfers.
1. The Overall Progress of a Release Channel is always shown as
   a fractional number. This required changing the Javascript
   of the widget `progressbar` to add a new option to allow this.
   The idea is to submit this change to Odoo.

2. The Overall Progress computation has been changed, to be now:
   "Done Today" / sum("To Release", "To Do", "Done Today")
When order is confirmed, it triggers channel assign.
If the user that confirms the order doesn't have the correct rights,
then an error is raised.

Resolves: 2562
So normal users can process a sale order.
@simahawk simahawk added this to the 16.0 milestone Mar 10, 2023
@simahawk simahawk merged commit 556eb28 into OCA:16.0 Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants