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

8.0 port module stock_reserve_sale #14

Merged
merged 11 commits into from
Oct 3, 2014

Conversation

yvaucher
Copy link
Member

Includes re-factoring with new API

This PR depends on #8 which is merged 😸

@lepistone
Copy link
Member

i think the build is red because of OCA/maintainer-quality-tools#91

👍

@lepistone
Copy link
Member

Now the build is still red, but that's just because of a minor lint error. I'll fix it when merging.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling d173695 on yvaucher:8.0-stock_reserve_sale into af9499e on OCA:8.0.

@lepistone
Copy link
Member

I realised I had the right to fix directly. We're green now. Thanks!

for line in lines:
if not line.is_stock_reservable:
continue
vals = self._prepare_stock_reservation(line)[0]
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 remove the [0] by changing the decorator of the function from api.one to api.multi (use self.ensure_one() at the beginning of the method if needed)

@lepistone
Copy link
Member

@gurneyalex I addressed your remarks. I also rebased to be able to test, to bring #8 in. Thanks!

@coveralls
Copy link

Coverage Status

Coverage increased (+45.91%) when pulling 0fba1c1 on yvaucher:8.0-stock_reserve_sale into 974953e on OCA:8.0.

@gurneyalex
Copy link
Member

👍

@yvaucher
Copy link
Member Author

yvaucher commented Oct 3, 2014

👍 Thanks for the fixes @lepistone

yvaucher added a commit that referenced this pull request Oct 3, 2014
@yvaucher yvaucher merged commit 45b3f98 into OCA:8.0 Oct 3, 2014
rousseldenis pushed a commit to acsone/stock-logistics-warehouse that referenced this pull request Jan 12, 2018
…l_procurement_setup-dro

[10.0][FIX] stock orderpoint manual procurement: Add setup
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

4 participants