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
[MIG] stock_reserve_sale: Migration to 12.0 #636
Conversation
I'm afraid this still lacks the commit history. You can see it because there's only one commit. |
So how can I do in the right way? |
Following the given steps. Maybe you didn't replace where it says |
I did fllowing the given steps and I already replaced the MODULE with the module name. |
But the commits are not here... I'll take this branch later and try to fix it. |
@hzh0292 As the module is not present in 11, I suppose you took it from 10, so in git format patch, replace 11 by 10 |
…eservation exists. product and uom ask to release the reservation before changing, price_unit is copied to the reservation move a change of quantity will warn the user to update the reservation manually (the user can choose a different quantity to reserve)
…that the qty of the reservation will be changed
…e with a stock reservation
…ine. in fact usually it would be 1-1 but make more sense to have the relation on stock.reservation
…) and remove the cancel button (already displayed on the header)
450ca9b
to
b90c8f0
Compare
In fact,I took it from 9.0 branch.The 10.0 was not a complete migration from 8.0. |
That looks better ! |
Can you have a look at this #678? |
OK,I have seen this and I will check and add the code into the PR. |
Take "Enable Route on Sales Order Line" into account as rven suggested.
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.
Code review. Minor comment.
Could you squash your commits into Migration one ?
Co-Authored-By: Denis Roussel (ACSONE) <rousseldenis@users.noreply.github.com>
Hey @hzh0292, thank you for your Pull Request. It looks like some users haven't signed our Contributor License Agreement, yet.
Appreciation of efforts, |
stock_reserve_sale/models/sale.py
Outdated
from odoo.fields import first | ||
return first(self.route_id.rule_ids.sorted( | ||
key=lambda r: (r.route_sequence, r.sequence))) | ||
from odoo.fields import first |
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.
Put import on beginning of the file
@hzh0292 Could you squash your commits and check tests? |
Migration commits need to be squashed. |
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. |
No description provided.