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] mrp: mrp_workorder uninstall #32811

Closed

Conversation

nim-odoo
Copy link
Contributor

  • Install 'quality_mrp_workorder' without demo data
  • Uninstall it
  • Install it again
  • Go to the General Settings

A warning is raised regarding the uninstallation of 'mrp_workorder'.

This is due to _onchange_group_mrp_routings, which assumes that the
installation of 'mrp_workorder' is only linked to the group
group_mrp_routings.

This is incorrect: group_mrp_routings might not be activated, but it
might be in the dependencies of another module. Therefore, we change the
logic: if we activate group_mrp_routings, we install 'mrp_workorder'.
If we deactivate group_mrp_routings we do not uninstall
'mrp_workorder' if it is already installed, since it might be required
by a dependancy.

opw-1970910

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:

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

@nim-odoo nim-odoo self-assigned this Apr 18, 2019
@nim-odoo nim-odoo added the OE the report is linked to a support ticket (opw-...) label Apr 18, 2019
@robodoo robodoo added seen 🙂 CI 🤖 Robodoo has seen passing statuses labels Apr 18, 2019
- Install 'quality_mrp_workorder' without demo data
- Go to the General Settings

A warning is raised regarding the uninstallation of 'mrp_workorder'.

This is due to `_onchange_group_mrp_routings`, which assumes that the
installation of 'mrp_workorder' is only linked to the group
`group_mrp_routings`.

This is incorrect: `group_mrp_routings` might not be activated, but it
might be in the dependencies of another module. Therefore, we change the
logic: if we activate `group_mrp_routings`, we install 'mrp_workorder'.
If we deactivate `group_mrp_routings` we do not uninstall
'mrp_workorder' if it is already installed, since it might be required
by a dependancy.

opw-1970910
@nim-odoo nim-odoo force-pushed the 12.0-opw-1970910-mrp_workorder-nim branch from 9728d1b to ed3112a Compare April 19, 2019 07:22
@robodoo robodoo removed the CI 🤖 Robodoo has seen passing statuses label Apr 19, 2019
@nim-odoo
Copy link
Contributor Author

robodoo r+

@robodoo robodoo added CI 🤖 Robodoo has seen passing statuses merging 👷 labels Apr 19, 2019
@robodoo robodoo closed this in 6c70217 Apr 19, 2019
@robodoo
Copy link
Contributor

robodoo commented Apr 19, 2019

Merged, thanks!

@nim-odoo nim-odoo deleted the 12.0-opw-1970910-mrp_workorder-nim branch April 19, 2019 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI 🤖 Robodoo has seen passing statuses OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants