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

Fix default get of wizard 'Create Agreement Purchase Order' #76

Merged
merged 3 commits into from
Dec 3, 2014

Conversation

yvaucher
Copy link
Member

Wizard failed sometimes on startup when called from Logistics Requisition Line
This was due to a browse of LR Source using ids of LR Line from
active_ids

@coveralls
Copy link

Coverage Status

Coverage decreased (-7.76%) when pulling 5566143 on yvaucher:8.0-fix-fa-create-po-default_get into 0335685 on OCA:8.0.

@jgrandguillaume
Copy link
Member

👍

@nbessi
Copy link

nbessi commented Dec 2, 2014

👍

if context.get('active_model') == 'logistic.requisition.source':
source_ids = context['active_ids']
else:
line_ids = context['active_ids']
Copy link
Member

Choose a reason for hiding this comment

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

what about an assert model==LRL here?

@lepistone
Copy link
Member

@yvaucher 👍 with a tiny remark. Ping me for a merge.

@yvaucher yvaucher force-pushed the 8.0-fix-fa-create-po-default_get branch from dccef23 to 49b6b19 Compare December 2, 2014 13:56
@yvaucher
Copy link
Member Author

yvaucher commented Dec 2, 2014

@lepistone I fixed your remark plus did some refactoring.

@lepistone
Copy link
Member

Thanks, I'm waiting for the build.

@coveralls
Copy link

Coverage Status

Coverage increased (+12.01%) when pulling 49b6b19 on yvaucher:8.0-fix-fa-create-po-default_get into f157daa on OCA:8.0.

Wizard failed sometimes on startup when called from Logistics Requisition Line
This was due to a browse of LR Source using ids of LR Line from
active_ids
@yvaucher yvaucher force-pushed the 8.0-fix-fa-create-po-default_get branch from 49b6b19 to d3451c8 Compare December 2, 2014 15:12
@yvaucher yvaucher force-pushed the 8.0-fix-fa-create-po-default_get branch from ea798ee to 4577e6f Compare December 2, 2014 15:17
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.19%) when pulling 4577e6f on yvaucher:8.0-fix-fa-create-po-default_get into f157daa on OCA:8.0.

nbessi added a commit that referenced this pull request Dec 3, 2014
Fix default get of wizard 'Create Agreement Purchase Order'
@nbessi nbessi merged commit c250c1f into OCA:8.0 Dec 3, 2014
@yvaucher yvaucher deleted the 8.0-fix-fa-create-po-default_get branch December 3, 2014 09:53
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.

5 participants