Thursday, May 22, 2025
1 change · saas-18.1
Resolved issues and error corrections
Users can now create and edit a product while adding a sales order line from a project task without encountering an error. The update ensures the correct product form is used in this flow, making task-related sales entry smoother and more reliable.
Original PR description
Before this commit, when the user creates a SOL from scratch inside the form view of a task and would like to also create and edit the product linked to that new SOL, a traceback is occurred because a certain field cannot be computed correctly. The reason is because the form view loaded is the one of the `product.template` module instead of `product.product`. This commit adds a new product form view to hide the product type if the user creates a product inside the SOL form view displayed when he creates a SOL in sale_line_id field of `project.task` model. This commit also changes the form view to load for `product.product` model to use the one added inside that commit. task-4781817