Skip to content

[IMP] quality_control_oca, various: Translated model name in object_id #1561

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

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

diggy128
Copy link

@diggy128 diggy128 commented Jul 2, 2025

quality_control_oca, quality_control_stock_oca, quality_control_mrp_oca:
Refactor object_selection_values() in qc.inspection to get model and name from ir.model using env.ref
Model refs are taken from a dependent module.
This makes the selection dropdown in the UI translated (using the model name in ir.model).
As the reimplementation just changes how the models in these modules are inserted in the selection field, any overrides in custom modules still work.

@diggy128 diggy128 force-pushed the 16.0-quality_control-translated_object_id branch from 85e9b9c to e645b2e Compare July 2, 2025 10:32
…ct_id

quality_control_oca, quality_control_stock_oca, quality_control_mrp_oca:
Refactor object_selection_values() in qc.inspection to get model and name
from ir.model using env.ref
Model refs are taken from a dependent module.
This makes the selection dropdown in the UI translated (using the model
name in ir.model).
As the reimplementation just changes how the models in these modules are
inserted in the selection field, any overrides in custom modules still work.
@diggy128 diggy128 force-pushed the 16.0-quality_control-translated_object_id branch from e645b2e to 4c158d7 Compare July 2, 2025 11:22
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.

1 participant