Saturday, February 3, 2024
1 change · master
Resolved issues and error corrections
Users adding materials to a field service task can now open the product availability report without encountering an error. This ensures teams can quickly check stock availability from the task workflow and continue planning work without interruption.
Original PR description
Before this commit, when the user is currently in the view to add some material on a task and wants to view availability of a product, a traceback is occured instead of displaying the report, the reason is because the context in the action is a string and not a dict and so we cannot do an update to update the context. This commit fixes the issue by doing first a literal_eval to get a dictionary for the action context and then update the context to add the warehouse to use. X-original-commit: c78a49b0984fb36c9909cb02ca71ae4760912a79