Automated Sorting and Closing for Upgrades Tasks - odoo-ps/psbe-process GitHub Wiki

Sorting Tasks

  1. Triggered automatically at creation and when writing on mnt_subscription_id, project_id or display_project_id
  2. 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)
  3. Move the task to the dedicated project (for customized db) if no one is assigned to the task
  4. Create or link the parent to the task (based on subscription)
  5. Complete the "Assigned to" field with the parent's reviewer (BE only) or the the parent's "Assigned to" field
  6. Close parents with same subscription if the version is different AND all subtasks are closed

Closing Parents

  1. Automatically called by Sorting Tasks on parents with same subscription
  2. Can be called manually from Action menu on Upgrade Projects tasks only
  3. 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!)
  4. If different and ALL subtasks closed, the parent is set to Done
⚠️ **GitHub.com Fallback** ⚠️