feat: add Pending status for delivery/technician tasks

- New 'pending' status allows tasks to be created without a schedule,
  acting as a queue for unscheduled work that gets assigned later
- Pending group appears in the Delivery Map sidebar with amber color
- Other modules can create tasks in pending state for scheduling
- scheduled_date no longer required (null for pending tasks)
- New Pending Tasks menu item under Field Service
- Pending filter added to search view

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
gsinghpal
2026-02-24 04:21:05 -05:00
parent 84c009416e
commit 0e1aebe60b
26 changed files with 2735 additions and 9 deletions

17
fusion_poynt/__init__.py Normal file
View File

@@ -0,0 +1,17 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import controllers
from . import models
def post_init_hook(env):
from odoo.addons.fusion_poynt import const
provider = env.ref('fusion_poynt.payment_provider_poynt', raise_if_not_found=False)
if provider:
provider._setup_provider('poynt')
def uninstall_hook(env):
provider = env.ref('fusion_poynt.payment_provider_poynt', raise_if_not_found=False)
if provider:
provider.write({'state': 'disabled', 'is_published': False})