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][IMP] stock_release_channel_shipment_advice_deliver: Add option auto_delivery and allow to print in-process shipment advice #5

Conversation

tuantrantg
Copy link

No description provided.

@@ -40,6 +40,7 @@ class StockReleaseChannel(models.Model):
in_process_shipment_advice_ids = fields.One2many(
"shipment.advice", compute="_compute_in_process_shipment_advice_ids"
)
auto_deliver = fields.Boolean()
Copy link
Owner

Choose a reason for hiding this comment

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

Can you add as a condition in _compute_is_action_deliver_allowed ?

@tuantrantg tuantrantg force-pushed the 16.0-imp-stock_release_channel_shipment_advice_deliver branch from 7936766 to 7cbc5b9 Compare April 1, 2024 04:17
@@ -63,6 +64,7 @@ def _compute_is_action_deliver_allowed(self):
)
and bool(rec.picking_to_plan_ids)
and rec.shipment_planning_method != "none"
and rec.auto_deliver
Copy link
Author

@tuantrantg tuantrantg Apr 1, 2024

Choose a reason for hiding this comment

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

hi @jbaudoux auto_deliver is added in _compute_is_action_deliver_allowed, please review it

…delivery and allow to print in-process shipment advice
@tuantrantg tuantrantg force-pushed the 16.0-imp-stock_release_channel_shipment_advice_deliver branch from 7cbc5b9 to eae0e05 Compare April 2, 2024 04:28
@tuantrantg
Copy link
Author

hi @jbaudoux could you please review it again

@jbaudoux jbaudoux merged commit 39477e3 into jbaudoux:16.0-release_channel_deliver Apr 3, 2024
1 of 4 checks passed
@jbaudoux
Copy link
Owner

jbaudoux commented Apr 3, 2024

Merging as failing test does not seem related to this

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.

2 participants