This code was to be removed in saas-7 (which went the way of the dodo) project_time_mode_id is now only on hr_timesheet This was creating an ir.model.data entry with res_id=0 (not record found). A ir.model.data without id triggers a warning in the trans_generate method when trying to export the translations of the module project (where the reference fails to be resolved)