Skip to content

[16.0][IMP] shopfloor/base: Improve message management - #1165

Open
rousseldenis wants to merge 6 commits into
OCA:16.0from
acsone:16.0-imp-shopfloor-location_content_message-dro
Open

[16.0][IMP] shopfloor/base: Improve message management#1165
rousseldenis wants to merge 6 commits into
OCA:16.0from
acsone:16.0-imp-shopfloor-location_content_message-dro

Conversation

@rousseldenis

@rousseldenis rousseldenis commented May 12, 2026

Copy link
Copy Markdown

This PR will enhance message management in shopfloor stack.

In some situations (like the call to _is_dest_location_valid() function, the reason of error is not known exactly depending on extension mechanisms that add logic to existing flows.

So, having a stored message queue in the call stack will allow to add more context to the message for operator.

This will also improve message for location content transfer when location destination is invalid (it shows the source and destination (computed) locations. It also shows the concerned product.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @sebalix, @simahawk, @guewen,
some modules you are maintaining are being modified, check this out!

@OCA-git-bot OCA-git-bot added series:16.0 mod:shopfloor Module shopfloor mod:shopfloor_base Module shopfloor_base labels May 12, 2026
@rousseldenis
rousseldenis force-pushed the 16.0-imp-shopfloor-location_content_message-dro branch from 6071b3c to 28b57f0 Compare May 13, 2026 13:35
If the move line is not yet created, we need to know which destination location
has been computed in order to display it to user. We add also the product
name
In some situations, it is convenient to store the message in a message queue
at different levels of shopfloor stack and then restitute them in the
response.
@rousseldenis
rousseldenis force-pushed the 16.0-imp-shopfloor-location_content_message-dro branch from 28b57f0 to 6fee966 Compare July 2, 2026 07:01
cls.data = work.component(usage="data")
cls.data_detail = work.component(usage="data_detail")
cls.msg_store = work.component(usage="message")
# cls.msg_store = work.component(usage="message")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you look at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:shopfloor_base Module shopfloor_base mod:shopfloor Module shopfloor series:16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants