-
-
Notifications
You must be signed in to change notification settings - Fork 127
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][FIX] shipment_advice: do not copy shipment advice id on moves #123
base: 14.0
Are you sure you want to change the base?
Conversation
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.
Thank you.
Should it also be copy=False
on stock.move.line
?
I do not think it is necessary, at least for what we are trying to fix here, which is handling backorder correctly. |
I my opinion this should also be False for stock.move.line, it should be set by
|
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.
LGTM
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.
LG
This PR has the |
d2e8bf4
to
fd17878
Compare
@jbaudoux could you merge this one please? |
ping @OCA/logistics-maintainers ? |
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.
What happens when you process with shopfloor reception and the move is split when you set destination ? Does it remains planned?
For shopfloor_delivery_shipment https://github.com/OCA/wms/blob/14.0/shopfloor_delivery_shipment/services/delivery_shipment.py we should be good. For shopfloor_reception / shopfloor_reception_shipment_advice this could lead to an error, so i wouldn't remain planned. I think therefor we should extend Also there is |
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.
shopfloor_reception_shipment_advice needs to be adapted accordingly
I think we can overwrite @TDu when do you plan to do this? |
In the case of partially receiving goods, the backorder moves created should not be included in the shipment advice being processed. But it probably makes sense for outgoing move as well.
46152a5
to
5a708af
Compare
Rebased. |
I just discussed this topic, again. And right now i don't know where this requirement is coming from anymore. |
cc @rousseldenis (fyi) |
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
|
||
def _prepare_move_split_vals(self, qty): | ||
vals = super()._prepare_move_split_vals(qty) | ||
if self.env.context.get("shipment_advice__propagate_on_split"): |
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.
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.
Just as Information, we discussed this topic some weeks ago and there was no scenario where the id should not be copied. All of the cases in shopfloor as example would need the value.
So i think we should close this one.
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.
It seems that this PR is not used on customer projects, I would say it can be closed.
Although I think the copy=False
makes some sense.
In the case of partially receiving goods, the backorder moves created should not be included in the shipment advice being processed. But it probably makes sense for outgoing move as well.