[FIX] expomex: Display production origin and sale customer in Shop Floor t#96896#28
Open
[FIX] expomex: Display production origin and sale customer in Shop Floor t#96896#28
Conversation
dc745fc to
391de84
Compare
When switching workcenters in the Shop Floor view, the system alternates between displaying mrp.production and mrp.workorder records. The fields order_partner_id (customer) and origin (source document reference) belong only to the mrp.production model, not to mrp.workorder. Attempting to access them directly from record (which is mrp.workorder.data) meant the fields were missing and not rendered. The solution accesses these fields via props.production.data, which always contains the linked production, regardless of the current model displayed. This ensures customer and origin information is visible in both production and workorder views, improving the operational UX on the shop floor.
391de84 to
cc6b4dc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix mrp_display_record.xml to access
production fields via getters (orderPartnerId, productionOrigin) instead of record.
Add mrp_display_record.js patch with getters reading from props.production.data to ensure fields render in both mrp.production and mrp.workorder modes.
T#96896
MR