"Error: No module" forcustom DocType

Hello everyone,

I am a newbie to ERPNext so I apologize in advance if the question is stupid but looking on the internet I have not found anything useful. Basically I created a custom DocType “Foglio di lavoro” from the DocType Timesheet. Everything worked but now, after doing a bench update, when I try to open the list of worksheets to create a new one, a popup appears saying

ImportError: Module import failed for Foglio di lavoro (erpnext.projects.doctype.foglio_di_lavoro.foglio_di_lavoro Error: No module named ‘erpnext.projects.doctype.foglio_di_lavoro.foglio_di_lavoro’)

I’m wondering if anyone can give me a tip or explain what causes this error and how to fix it
Thank you