credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #05882
[Merge] lp:~therp-nl/openupgrade-addons/7.0-project_data into lp:openupgrade-addons
Stefan Rijnhart (Therp) has proposed merging lp:~therp-nl/openupgrade-addons/7.0-project_data into lp:openupgrade-addons.
Requested reviews:
OpenUpgrade Committers (openupgrade-committers)
For more details, see:
https://code.launchpad.net/~therp-nl/openupgrade-addons/7.0-project_data/+merge/216538
Reformatted out put of openobject-server/scripts/compare_noupdate_xml_records.py comparing extracting changes in noupdate data in the project module between 6.1 to 7.0
--
https://code.launchpad.net/~therp-nl/openupgrade-addons/7.0-project_data/+merge/216538
Your team OpenUpgrade Committers is requested to review the proposed merge of lp:~therp-nl/openupgrade-addons/7.0-project_data into lp:openupgrade-addons.
=== added file 'project/migrations/7.0.1.1/data.xml'
--- project/migrations/7.0.1.1/data.xml 1970-01-01 00:00:00 +0000
+++ project/migrations/7.0.1.1/data.xml 2014-04-20 10:10:12 +0000
@@ -0,0 +1,36 @@
+<?xml version='1.0' encoding='utf-8'?>
+<openerp>
+ <data>
+ <!-- Changes in noupdate data -->
+ <record model="ir.rule" id="project_comp_rule">
+ <field name="domain_force">['|',
+ ('company_id', '=', False),
+ ('company_id', 'child_of', [user.company_id.id]),
+ ]</field>
+ <field name="name">Project: multi-company</field>
+ </record>
+ <record model="ir.rule" id="task_visibility_rule">
+ <field name="groups" eval="[(4,ref('base.group_user'))]"/>
+ <field name="domain_force">['|',
+ ('user_id', '=', user.id),
+ '|',
+ ('project_id.privacy_visibility', 'in', ['public', 'employees']),
+ '&',
+ ('project_id.privacy_visibility', '=', 'followers'),
+ ('message_follower_ids', 'in', [user.partner_id.id]),
+ ]</field>
+ <field name="name">Project/Task: employees: public or employee or following or assigned</field>
+ </record>
+ <record model="ir.rule" id="task_comp_rule">
+ <field name="domain_force">['|',
+ ('company_id', '=', False),
+ ('company_id', 'child_of', [user.company_id.id]),
+ ]</field>
+ <field name="name">Project/Task: multi-company</field>
+ </record>
+ <record model="ir.rule" id="project_manager_all_project_tasks_rule">
+ <field name="domain_force">[(1, '=', 1)]</field>
+ <field name="name">Project/Task: project manager: see all</field>
+ </record>
+ </data>
+</openerp>
=== modified file 'project/migrations/7.0.1.1/post-migration.py'
--- project/migrations/7.0.1.1/post-migration.py 2014-03-27 10:43:36 +0000
+++ project/migrations/7.0.1.1/post-migration.py 2014-04-20 10:10:12 +0000
@@ -68,3 +68,4 @@
copy_state_from_analytic_account(cr)
createProjectAliases(cr, pool)
openupgrade.logged_query(cr,'DROP VIEW project_vs_hours')
+ openupgrade.load_data(cr, 'project', 'migrations/7.0.1.1/data.xml')
Follow ups