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

Make product creation from bom line expolde customizable. #537

Closed
wants to merge 1 commit into from

Conversation

codingforfun
Copy link

Description of the issue/feature this PR addresses:
Make it easier to customize product dict creation during mrp.bom line explode.

Current behavior before PR:
Currently to customize it would be necessary to copy all the code of the function.

Desired behavior after PR is merged:
Override only _bom_explode_product() to modify the returned data.

Example: For a special customization in my own code I need the ID of the parent mrp.bom the product dict is comming from.
This simple change allows to hook in easily

I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@codingforfun
Copy link
Author

Upstream PR: odoo#13311

@pedrobaeza
Copy link
Member

This was not accepted for 8.0 for us when we proposed it, so we created https://github.com/OCA/manufacture/tree/8.0/mrp_hook. Depends on that module and you will have it. On v9, the hook was accepted, so you can simply remove it in your migration path.

@pedrobaeza pedrobaeza closed this Aug 26, 2016
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

2 participants