TypeError: Model 'project.forecast' does not exist in registry odoo14

908 Views Asked by At

I'm migrating an Enterprise Odoo 12 module to 14 which depends on the project module, when I'm trying to install I get this error:

TypeError: Model 'project.forecast' does not exist in registry.

I've been trying to locate the model definition but I couldn't find it in the code

I stumble upon some similar error and the answer was to include the dependency to the manifest, the manifest is the following:

'depends': ['base','project','project_forecast','hr_timesheet','hr_expense','account_reports','sale_timesheet','documents','hr_holidays','calendar','contacts']

I see there, project_forecast, so I bet something has changed in 14 and I'm not aware of the change.

Any help will be appreciated.

1

There are 1 best solutions below

0
On

Seems like there has been a huge rewrite in the project module, now project forecast has been mutated to a class named planning shift as follows:

class PlanningShift(models.Model):
    _inherit = 'planning.slot'

Any inheritance you do on project forecast model has to be changed to planning.slot