Skip to content

[FIX] expomex: Display production origin and sale customer in Shop Floor t#96896#28

Open
JJRR5 wants to merge 1 commit into18.0from
18.0-fix_mrp_production_custom_fields-JJRR5
Open

[FIX] expomex: Display production origin and sale customer in Shop Floor t#96896#28
JJRR5 wants to merge 1 commit into18.0from
18.0-fix_mrp_production_custom_fields-JJRR5

Conversation

@JJRR5
Copy link
Contributor

@JJRR5 JJRR5 commented Nov 27, 2025

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

@JJRR5 JJRR5 changed the title [FIX] expomex: Display production origin and sale customer in Shop Floor [FIX] expomex: Display production origin and sale customer in Shop Floor t#96896 Nov 27, 2025
@JJRR5 JJRR5 force-pushed the 18.0-fix_mrp_production_custom_fields-JJRR5 branch 5 times, most recently from dc745fc to 391de84 Compare December 1, 2025 16:25
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.
@JJRR5 JJRR5 force-pushed the 18.0-fix_mrp_production_custom_fields-JJRR5 branch from 391de84 to cc6b4dc Compare December 11, 2025 21:43
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