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:
17
fusion_poynt/__init__.py
Normal file
17
fusion_poynt/__init__.py
Normal 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})
|
||||
Reference in New Issue
Block a user