-
-
Notifications
You must be signed in to change notification settings - Fork 193
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][ADD] stock_release_channel_shipment_advice #560
[16.0][ADD] stock_release_channel_shipment_advice #560
Conversation
cc/ @lmignon |
9aa2dc2
to
345a177
Compare
stock_release_channel_shipment_advice/models/stock_release_channel.py
Outdated
Show resolved
Hide resolved
stock_release_channel_shipment_advice/models/stock_release_channel.py
Outdated
Show resolved
Hide resolved
stock_release_channel_shipment_advice/models/stock_release_channel.py
Outdated
Show resolved
Hide resolved
stock_release_channel_shipment_advice/models/stock_release_channel.py
Outdated
Show resolved
Hide resolved
stock_release_channel_shipment_advice/models/stock_release_channel.py
Outdated
Show resolved
Hide resolved
stock_release_channel_shipment_advice/models/stock_release_channel.py
Outdated
Show resolved
Hide resolved
59f1fc9
to
b6362ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sbejaoui The warehouse_id is not required on the release_channel but on the shipment_advice....
When you plan the shipments, you should group the picking by warehouse and makes a shipment advice by warehouse.
b6362ab
to
3ce9cef
Compare
3ce9cef
to
bb53810
Compare
stock_release_channel_shipment_advice/models/stock_release_channel.py
Outdated
Show resolved
Hide resolved
stock_release_channel_shipment_advice/models/stock_release_channel.py
Outdated
Show resolved
Hide resolved
stock_release_channel_shipment_advice/models/stock_release_channel.py
Outdated
Show resolved
Hide resolved
ace622c
to
e5e45b6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpicking ....
stock_release_channel_shipment_advice/models/stock_release_channel.py
Outdated
Show resolved
Hide resolved
stock_release_channel_shipment_advice/models/stock_release_channel.py
Outdated
Show resolved
Hide resolved
stock_release_channel_shipment_advice/models/stock_release_channel.py
Outdated
Show resolved
Hide resolved
stock_release_channel_shipment_advice/models/stock_release_channel.py
Outdated
Show resolved
Hide resolved
stock_release_channel_shipment_advice/models/stock_release_channel.py
Outdated
Show resolved
Hide resolved
stock_release_channel_shipment_advice/models/stock_release_channel.py
Outdated
Show resolved
Hide resolved
stock_release_channel_shipment_advice/models/stock_release_channel.py
Outdated
Show resolved
Hide resolved
9da01bc
to
bcb6b3a
Compare
bcb6b3a
to
9952fdc
Compare
stock_release_channel_shipment_advice/models/shipment_advice_planner.py
Outdated
Show resolved
Hide resolved
9952fdc
to
e0f8a70
Compare
stock_release_channel_shipment_advice/models/stock_release_channel.py
Outdated
Show resolved
Hide resolved
stock_release_channel_shipment_advice/models/shipment_advice_planner.py
Outdated
Show resolved
Hide resolved
stock_release_channel_shipment_advice/models/stock_release_channel.py
Outdated
Show resolved
Hide resolved
As this is the base module, it provides only a simple | ||
planning mode. All released pickings are grouped together in a single advice. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reading this, it is like all pickings inserted in the release channel are automatically planned in a shipment but I don't think so looking at the code.
Can you clarify how the shipment advice is supposed to be created in this simple mode and how the pickings are put in it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the description, please check my last commit and let me know
f7a3523
to
4d466a3
Compare
e8f5980
to
8aae49d
Compare
This module is used to plan the shipment advice for released pickings in a stock release channel. As this is the base module, it provides only a simple planning mode. All released pickings are grouped together in a single advice. fix label Co-authored-by: Laurent Mignon (ACSONE) <laurent.mignon@acsone.eu> [FIX] - button_show_shipment_advice: improve domain Co-authored-by: Laurent Mignon (ACSONE) <laurent.mignon@acsone.eu> [IMP] - _compute_can_plan_shipment: improve expression Co-authored-by: Laurent Mignon (ACSONE) <laurent.mignon@acsone.eu> [IMP] - _plan_shipment: improve expression Co-authored-by: Laurent Mignon (ACSONE) <laurent.mignon@acsone.eu> Apply suggestions from code review Co-authored-by: Laurent Mignon (ACSONE) <laurent.mignon@acsone.eu>
…annel dock and warehouse are propgated from the release channel to shipment advice planner
…he warehouse add data validation + form behavior improvement
self in compute is composed of objects browse(NewId), setting the computed field with the db id leads to odoo raises and error saying newId didn't get a value
8aae49d
to
83c33c8
Compare
…ault with Today filter
attrs="{'invisible': [('can_plan_shipment', '=', False)]}" | ||
/> | ||
</xpath> | ||
<xpath expr="//field[@name='warehouse_id']" position="after"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Shipment Planning Method
must be in the option tab, not in the selection criteria
<xpath expr="//field[@name='warehouse_id']" position="after"> | |
<xpath expr="//group[@name='options']" position="inside"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As commented below, as this is not the only field, maybe put that inside a new tab instead of putting it in options
@@ -91,7 +91,6 @@ def _constrains_picking_type_location(self): | |||
not record.location_dest_id | |||
or not record.location_dest_id.is_sublocation_of(base_location) | |||
): | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not be part of this PR
<xpath expr="//field[@name='warehouse_id']" position="after"> | ||
<field | ||
name="dock_id" | ||
attrs="{'invisible': [('warehouse_id', '=', False)]}" | ||
/> | ||
</xpath> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for this. It should not be in the "Selection criteria" tab.
Maybe a new "shipment" tab would be suitable for the planning method and dock?
I'm checking the build here |
Moving fwd here #761 |
This module is used to plan the shipment advices for released pickings in a stock release channel.
As this is the base module, it only provides a simple planning mode. All the ready pickings of a release channel are grouped together to result in a single shipping advice per warehouse.
Depends on :