Two manager-side time savers on the Add Shift dialog: 1. Auto-publish on create Override planning.slot.create() to default state='published' for every new shift (was: 'draft', requiring a separate Publish step per slot — painful with recurrence which can generate dozens at a time). Recurrency-generated copies inherit the parent slot's state, so a single recurring shift now publishes the whole series in one save. Manager can still pass state='draft' explicitly to opt out. 2. Apply Also To (multi-resource bulk create) New x_fc_additional_resource_ids m2m on planning.slot. When set, create() splits the vals into one slot per additional resource (deduped against the primary). Combined with recurrence, picking N employees and a date range now creates the full N x M shift matrix in a single Save instead of N manual repeats. Field appears in the Add Shift dialog under Role, hidden once the slot is saved (it's a create-time helper, not ongoing data), and gated to planning.group_planning_manager. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
42 lines
1.2 KiB
Python
42 lines
1.2 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Copyright 2026 Nexa Systems Inc.
|
|
# License OPL-1 (Odoo Proprietary License v1.0)
|
|
# Part of the Fusion Clock product family.
|
|
|
|
{
|
|
'name': 'Fusion Planning',
|
|
'version': '19.0.1.1.0',
|
|
'category': 'Human Resources/Planning',
|
|
'summary': 'Fusion Clock bridge to Odoo Planning - employee schedule on the portal',
|
|
'description': """
|
|
Fusion Planning
|
|
===============
|
|
|
|
Adds Odoo Planning to the Fusion Clock product family:
|
|
|
|
* Adds a "My Schedule" tab to the Fusion Clock portal
|
|
* Reuses Odoo Planning's exact backend UI (Gantt, send wizard, recurrence)
|
|
* Bridges planning.slot with fusion_clock attendance and leave
|
|
""",
|
|
'author': 'Nexa Systems Inc.',
|
|
'website': 'https://nexasystems.io',
|
|
'license': 'OPL-1',
|
|
'depends': [
|
|
'planning',
|
|
'fusion_clock',
|
|
],
|
|
'data': [
|
|
'views/planning_slot_views.xml',
|
|
'views/portal_schedule_templates.xml',
|
|
'views/portal_nav_inherit.xml',
|
|
],
|
|
'assets': {
|
|
'web.assets_frontend': [
|
|
'fusion_planning/static/src/css/portal_schedule.css',
|
|
],
|
|
},
|
|
'installable': True,
|
|
'auto_install': False,
|
|
'application': False,
|
|
}
|