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

Allow releasing multiple reservations at once #60

Merged
merged 3 commits into from
Jul 30, 2015

Conversation

mlaitinen
Copy link
Contributor

Fixes issue #50

@@ -132,8 +132,9 @@ def release(self):
"""
Release moves from reservation
"""
move_recs = self.move_id
move_recs.action_cancel()
for rec in self:
Copy link
Member

Choose a reason for hiding this comment

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

You can do better: self.mapped('move_id').action_cancel()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Awesome, thanks! I learned about mapped() only after I had originally made this change.

@guewen
Copy link
Member

guewen commented Jul 20, 2015

👍

1 similar comment
@pedrobaeza
Copy link
Member

👍

pedrobaeza added a commit that referenced this pull request Jul 30, 2015
Allow releasing multiple reservations at once
@pedrobaeza pedrobaeza merged commit 3760dcd into OCA:8.0 Jul 30, 2015
@mlaitinen mlaitinen deleted the fix50 branch August 20, 2015 12:56
gschrott-osi pushed a commit to ursais/stock-logistics-warehouse that referenced this pull request Jun 5, 2023
[FIX] Two openvalue bugs - incorrect model name and fix MO splitting
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.

None yet

3 participants