Automated Sorting and Closing for Upgrades Tasks - odoo-ps/psbe-process GitHub Wiki
Sorting Tasks
Triggered automatically at creation and when writing on mnt_subscription_id, project_id or display_project_id
If there is maintenance fee on the subscription, add tags "Maintenance of Customisations" and Team AB
with AB = salesteam office (BE, IN, US, HK, DU, LU)
Move the task to the dedicated project (for customized db) if no one is assigned to the task
Create or link the parent to the task (based on subscription)
Complete the "Assigned to" field with the parent's reviewer (BE only) or the the parent's "Assigned to" field
Close parents with same subscription if the version is different AND all subtasks are closed
Closing Parents
Automatically called by Sorting Tasks on parents with same subscription
Can be called manually from Action menu on Upgrade Projects tasks only
Compare the version in the field "name" with the version on the database form page (Don't adapt source version "[XX.X" in the name!)
If different and ALL subtasks closed, the parent is set to Done