Files
Odoo-Modules/fusion_poynt/__init__.py
gsinghpal 0e1aebe60b 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>
2026-02-24 04:21:05 -05:00

18 lines
545 B
Python

# 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})