-
- Downloads
[FIX] sale,sale_project: delete service tracking for non service product
Steps to reproduce the product: - Create a new product: - Select “Service” type - Go to the Sales tab: - Select "Create a task in an existing project" in the `service tracking` field - the `project` field becomes visible - Change the Type of the product to “Consumable” - Try to save Problem: The field `project` remains visible and as it is a required field, we have to fill it in before being able to save the product. While it is a feature only for service-type products Solution: - The `project` field is based on the `service_tracking` field to become invisible or not. So when the product is not of service type, we must remove the tracking service so that the project field becomes invisible. - Prevent the user from changing the type of products already used in a sale order opw-2858064 closes odoo/odoo#93280 X-original-commit: 8c12a8de Signed-off-by:Djamel Touati (otd) <otd@odoo.com> Signed-off-by:
Laurent Stukkens (ltu) <ltu@odoo.com>
Showing
- addons/sale/i18n/sale.pot 9 additions, 0 deletionsaddons/sale/i18n/sale.pot
- addons/sale/models/product_product.py 9 additions, 1 deletionaddons/sale/models/product_product.py
- addons/sale/models/product_template.py 5 additions, 0 deletionsaddons/sale/models/product_template.py
- addons/sale_project/models/product.py 30 additions, 0 deletionsaddons/sale_project/models/product.py
Loading
Please register or sign in to comment