summaryrefslogtreecommitdiff
path: root/addons/project/data/project_data.xml
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2019-03-29 09:51:11 +0000
committerMartin Trigaux <mat@odoo.com>2019-03-29 14:48:57 +0000
commit76264db40b177df5ec8f8675bae5c9ee349e0478 (patch)
tree7e38710590191adfe9a1a338be7ed80c32d7db61 /addons/project/data/project_data.xml
parent82f8c37f697e4453458cd549a3e8c81cd3766fa7 (diff)
[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)
Diffstat (limited to 'addons/project/data/project_data.xml')
-rw-r--r--addons/project/data/project_data.xml10
1 files changed, 0 insertions, 10 deletions
diff --git a/addons/project/data/project_data.xml b/addons/project/data/project_data.xml
index ff624b5a232..33535f15c19 100644
--- a/addons/project/data/project_data.xml
+++ b/addons/project/data/project_data.xml
@@ -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"/>