Skip to content

Commit

Permalink
Merge pull request OCA#586 from OpenUpgrade-dev/9.0-project_issue_data
Browse files Browse the repository at this point in the history
[ADD] project_issue: load data changes. All checks passed. Merging.
  • Loading branch information
JordiBForgeFlow authored Jul 30, 2016
2 parents f630c7b + e62b474 commit 7eeee4a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions addons/project_issue/migrations/9.0.1.0/noupdate_changes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version='1.0' encoding='utf-8'?>
<openerp>
<data>
<!--Changes in noupdate data-->
<record id="mt_issue_new" model="mail.message.subtype">
<field name="description">Issue opened</field>
<field name="name">Issue Opened</field>
</record>
<record id="mt_project_issue_new" model="mail.message.subtype">
<field name="name">Issue Opened</field>
</record>
<record id="mt_project_issue_blocked" model="mail.message.subtype">
<field name="sequence">21</field>
</record>
<record id="issue_user_rule" model="ir.rule">
<field name="domain_force">['|',
('project_id.privacy_visibility', 'in', ['portal', 'employees']),
'&amp;',
('project_id.privacy_visibility', '=', 'followers'),
('message_partner_ids', 'in', [user.partner_id.id]),
]</field>
<field name="name">Project/Issue: employees: portal, employee or (followers and following)</field>
</record>
<record id="mt_issue_ready" model="mail.message.subtype">
<field name="name">Issue Ready</field>
</record>
</data>
</openerp>
2 changes: 2 additions & 0 deletions addons/project_issue/migrations/9.0.1.0/post-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ def migrate(cr, version):
registry = RegistryManager.get(cr.dbname)

openupgrade.set_defaults(cr, registry, column_defaults, force=False)
openupgrade.load_data(
cr, 'project_issue', 'migrations/9.0.1.0/noupdate_changes.xml')

0 comments on commit 7eeee4a

Please sign in to comment.