fix(fusion_clock): planning port defers when planning ORM not loaded during -u
fusion_clock doesn't depend on planning, so planning's models load AFTER it during -u and the port saw no data. Now detect planning tables via SQL, defer (no marker) when the ORM isn't loaded, and finish the port from the deploy odoo-shell step (full registry). Marker now owned by the method. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -18,6 +18,10 @@ class TestPlanningMigration(TransactionCase):
|
||||
if 'planning.slot' not in self.env:
|
||||
self.skipTest('planning not installed (Community / local dev)')
|
||||
|
||||
# Ensure the port actually runs (it is marker-guarded for production).
|
||||
self.env['ir.config_parameter'].sudo().search(
|
||||
[('key', '=', 'fusion_clock.planning_migrated')]).unlink()
|
||||
|
||||
prole = self.env['planning.role'].create({'name': 'PortLead', 'color': 5})
|
||||
emp = self.env['hr.employee'].create({'name': 'Porty McPort'})
|
||||
if 'default_planning_role_id' in emp._fields:
|
||||
|
||||
Reference in New Issue
Block a user