[FIX] project: remove old hack
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)
This commit is contained in:
@@ -2,16 +2,6 @@
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
|
||||
<!-- sale_timesheet and project define the same field without depending on each, which causes the field to be deleted when the module that created it
|
||||
is deleted. To avoid this, we create xmlids manually for this field in both modules to prevent accidental deletion. To fix in saas-7 by moving the field definition-->
|
||||
<record id="duplicate_field_xmlid" model="ir.model.data">
|
||||
<field name="res_id" search="[('model','=','res.company'),('name','=','project_time_mode_id')]" model="ir.model.fields"/>
|
||||
<field name="model">ir.model.fields</field>
|
||||
<field name="module">project</field>
|
||||
<field name="name">project_time_mode_id_duplicate_xmlid</field>
|
||||
<field name="noupdate">True</field>
|
||||
</record>
|
||||
|
||||
<record id="ir_cron_rating_project" model="ir.cron">
|
||||
<field name="name">Project: Send rating</field>
|
||||
<field name="model_id" ref="project.model_project_project"/>
|
||||
|
||||
Reference in New Issue
Block a user