-
-
Notifications
You must be signed in to change notification settings - Fork 272
[17.0][IMP] stock_quant_history #415
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
base: 17.0
Are you sure you want to change the base?
[17.0][IMP] stock_quant_history #415
Conversation
|
Hi @petrus-v, |
c23f748 to
aee4b61
Compare
aee4b61 to
47e9bd8
Compare
9d99d62 to
f8197bf
Compare
…hile an history snapshot is generated
f8197bf to
4207b65
Compare
alexandregaldeano
left a comment
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
| :return: stock.quant.history recordset""" | ||
| self.ensure_one() | ||
| history_model = self.env["stock.quant.history"] | ||
| if self.state == "done" and self.date_done: |
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.
nitpick: invert if + early return?
| :return: True if the picking can be unlocked | ||
| :raises ValidationError: if not allowed to unlock""" | ||
| self.ensure_one() | ||
| if self.is_locked: |
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.
nitpick: invert if + early return?
| self.ensure_one() | ||
| if self.is_locked: | ||
| history_lines = self.get_stock_quant_history() | ||
| if history_lines.exists(): |
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.
nitpick: invert if + early return?
|
@rousseldenis Can you please merge? |
|
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. |
Add a constraint on locked picking while an history snapshot is generated.
Included a light refactoring of tests suites.
Propagated from 14.0 PR