← Back to team overview

credativ team mailing list archive

[Merge] lp:~therp-nl/openupgrade-addons/6.1-hr_group_attributes into lp:openupgrade-addons

 

Stefan Rijnhart (Therp) has proposed merging lp:~therp-nl/openupgrade-addons/6.1-hr_group_attributes into lp:openupgrade-addons.

Requested reviews:
  OpenUpgrade Committers (openupgrade-committers)

For more details, see:
https://code.launchpad.net/~therp-nl/openupgrade-addons/6.1-hr_group_attributes/+merge/132267

Additional group attributes for hr and purchase, which load its security definitions with noupdate=True.

-- 
https://code.launchpad.net/~therp-nl/openupgrade-addons/6.1-hr_group_attributes/+merge/132267
Your team OpenUpgrade Committers is requested to review the proposed merge of lp:~therp-nl/openupgrade-addons/6.1-hr_group_attributes into lp:openupgrade-addons.
=== added directory 'hr/migrations/6.1.1.1/data'
=== added file 'hr/migrations/6.1.1.1/data/hr_security.xml'
--- hr/migrations/6.1.1.1/data/hr_security.xml	1970-01-01 00:00:00 +0000
+++ hr/migrations/6.1.1.1/data/hr_security.xml	2012-10-31 09:40:27 +0000
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+    <data noupdate="1">
+        <record id="base.group_hr_user" model="res.groups">
+            <field name="category_id" ref="base.module_category_human_resources"/>
+            <field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
+        </record>
+        <record id="base.group_hr_manager" model="res.groups">
+            <field name="category_id" ref="base.module_category_human_resources"/>
+            <field name="implied_ids" eval="[(4, ref('base.group_hr_user'))]"/>
+        </record>
+    </data>
+</openerp>

=== modified file 'hr/migrations/6.1.1.1/post-migration.py'
--- hr/migrations/6.1.1.1/post-migration.py	2012-06-19 09:34:23 +0000
+++ hr/migrations/6.1.1.1/post-migration.py	2012-10-31 09:40:27 +0000
@@ -89,3 +89,4 @@
                 'hr_job', 
                 openupgrade.get_legacy_name('expected_employees')
             )])
+    openupgrade.load_data(cr, 'hr', 'migrations/6.1.1.1/data/hr_security.xml')

=== added directory 'purchase/migrations/6.1.1.1/data'
=== added file 'purchase/migrations/6.1.1.1/data/purchase_security.xml'
--- purchase/migrations/6.1.1.1/data/purchase_security.xml	1970-01-01 00:00:00 +0000
+++ purchase/migrations/6.1.1.1/data/purchase_security.xml	2012-10-31 09:40:27 +0000
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+    <data noupdate="1">
+        
+        <record id="group_purchase_user" model="res.groups">
+            <field name="category_id" ref="base.module_category_purchase_management"/>
+        </record>
+
+        <record id="group_purchase_manager" model="res.groups">
+            <field name="category_id" ref="base.module_category_purchase_management"/>
+            <field name="implied_ids" eval="[(4, ref('group_purchase_user'))]"/>
+        </record>
+
+    </data>
+</openerp>

=== added file 'purchase/migrations/6.1.1.1/post-migration.py'
--- purchase/migrations/6.1.1.1/post-migration.py	1970-01-01 00:00:00 +0000
+++ purchase/migrations/6.1.1.1/post-migration.py	2012-10-31 09:40:27 +0000
@@ -0,0 +1,26 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    This module copyright (C) 2012 Therp BV (<http://therp.nl>).
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as
+#    published by the Free Software Foundation, either version 3 of the
+#    License, or (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+from openerp.openupgrade import openupgrade
+
+@openupgrade.migrate()
+def migrate(cr, version):
+    openupgrade.load_data(cr, 'purchase', 'migrations/6.1.1.1/data/purchase_security.xml')

=== modified file 'purchase/migrations/6.1.1.1/user_notes.txt'
--- purchase/migrations/6.1.1.1/user_notes.txt	2012-06-12 10:51:34 +0000
+++ purchase/migrations/6.1.1.1/user_notes.txt	2012-10-31 09:40:27 +0000
@@ -1,1 +1,1 @@
-Nothing to do for module 'purchase'
+Adding additional group attributes to purchase user group


Follow ups