Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions addons/survey/migrations/9.0.2.0/noupdate_changes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version='1.0' encoding='utf-8'?>
<openerp>
<data>
<record id="base.group_survey_manager" model="res.groups"><field name="name">Manager</field>
<field name="category_id" ref="base.module_category_survey"/>
</record>
<record id="survey_input_users_access" model="ir.rule"><field name="domain_force">['|', ('create_uid', '=', user.id), ('partner_id', '=', user.partner_id.id)]</field>
</record>
<record id="base.group_survey_user" model="res.groups"><field name="name">User</field>
<field name="category_id" ref="base.module_category_survey"/>
</record>
</data>
</openerp>

32 changes: 32 additions & 0 deletions addons/survey/migrations/9.0.2.0/openupgrade_analysis_work.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---Fields in module 'survey'---
survey / survey.survey / description (html) : was renamed to description [nothing to do]
#nothing to do

survey / survey.survey / email_template_id (many2one) : relation is now 'mail.template' ('email.template')
#nothing to do

survey / survey.survey / message_follower_ids (many2many): not a function anymore
survey / survey.survey / message_follower_ids (many2many): relation is now 'mail.followers' ('res.partner')
survey / survey.survey / message_follower_ids (many2many): type is now 'one2many' ('many2many')
# Concerns module Mail (has to be done in another migration script specifically for that module) ---> Nothing to do

survey / survey.survey / res_model (char) : DEL
#nothing to do

---XML records in module 'survey'---
DEL email.template: survey.email_template_survey
#nothing to do

NEW ir.actions.client: survey.action_client_survey_menu
NEW ir.actions.todo: base.open_menu
# ir.actions.* ---> Nothing to do

DEL ir.ui.menu: base.menu_marketing_config_root
NEW ir.ui.view: survey.assets_backend
NEW ir.ui.view: survey.assets_frontend_survey
NEW ir.ui.view: survey.back
# ir.ui.* ---> Nothing to do

NEW mail.template: survey.email_template_survey
#nothing to do

10 changes: 10 additions & 0 deletions addons/survey/migrations/9.0.2.0/post-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
# © 2016 Tecnativa <vicent.cubells@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(cr, version):
openupgrade.load_data(cr, 'survey',
'migrations/9.0.2.0/noupdate_changes.xml')
2 changes: 1 addition & 1 deletion openerp/openupgrade/doc/source/modules80-90.rst
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ Status :
+-----------------------------------+-----------------------------------+
|subscription | Nothing to do |
+-----------------------------------+-----------------------------------+
|survey | |
|survey | Done |
+-----------------------------------+-----------------------------------+
|survey_crm | Nothing to do |
+-----------------------------------+-----------------------------------+
Expand Down