Sunday, September 28, 2025
2 changes · 19.0
Resolved issues and error corrections
Sales orders now hide the project shortcut when their only linked projects have been archived. This avoids showing users inactive project links and keeps the sales order view focused on current work.
Original PR description
Issue: ----- When a project is archived, the project stat button still appears on the sale order. Fix: --------- This commit excludes archived projects from the project count. As a result, the project stat button will be hidden when only archived projects are linked. Steps to reproduce: -------- - Install sale_project module - Create a product with service type, linked to a project and task - Create a sale order with the above product and confirm it - Archive the linked project - Return to the sale order and check the project stat button task-4780817 Forward-Port-Of: odoo/odoo#212730
This fix prevents an error when subscription sales orders do not yet have a last invoice date. The system now uses today’s date as a fallback, keeping stock movement checks working reliably.
Original PR description
The Issue: Prior to this commit, When the sale order last_invoice_date is False, a traceback is thrown The Fix: To resolve this, We get the last_invoice_date or todays date opw-4403557 Forward-Port-Of: odoo/enterprise#75717