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

Move refresh just before _check (fixes #124 for multi level BoM as well) #140

Closed
wants to merge 1 commit into from

Conversation

levkar
Copy link

@levkar levkar commented Aug 5, 2016

fixes #124 for multi level BoM's.

# introduces a weird behavior on the next call, provoking an error
procurement.production_id.sudo().refresh()
return super(ProcurementOrder, self)._check(
cr, uid, procurement, context=context)
Copy link
Member

Choose a reason for hiding this comment

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

Line at the end

@pedrobaeza
Copy link
Member

So it seems that you need the refresh on both places?

Please squash all the commits in one.

@oihane
Copy link
Contributor

oihane commented Aug 8, 2016

LGTM 👍

@levkar
Copy link
Author

levkar commented Aug 8, 2016

Figuring out squashing took more time than the fix :)

@pedrobaeza
Copy link
Member

Is this still needed with recent revisions?

@levkar
Copy link
Author

levkar commented Mar 17, 2017

I haven't tested with final version but I cannot see any PR which fixes this problem and later than this PR.

Seems like nobody is using multi level BoM :)

@pedrobaeza
Copy link
Member

@oihane @anajuaristi maybe you can check?

@LoisRForgeFlow
Copy link
Contributor

ping @oihane @anajuaristi

@LoisRForgeFlow
Copy link
Contributor

Closing as there are unresolved comments for a long time.

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

5 participants