← Back to team overview

credativ team mailing list archive

lp:~savoirfairelinux-openerp/openupgrade-addons/crm_claim_stage_data into lp:openupgrade-addons

 

Sandy Carter (http://www.savoirfairelinux.com) has proposed merging lp:~savoirfairelinux-openerp/openupgrade-addons/crm_claim_stage_data into lp:openupgrade-addons.

Requested reviews:
  OpenUpgrade Committers (openupgrade-committers)

For more details, see:
https://code.launchpad.net/~savoirfairelinux-openerp/openupgrade-addons/crm_claim_stage_data/+merge/192729

Added migration script for crm_claim which populates crm_claim_stage
-- 
https://code.launchpad.net/~savoirfairelinux-openerp/openupgrade-addons/crm_claim_stage_data/+merge/192729
Your team OpenUpgrade Committers is requested to review the proposed merge of lp:~savoirfairelinux-openerp/openupgrade-addons/crm_claim_stage_data into lp:openupgrade-addons.
=== added file 'crm_claim/migrations/7.0.1.0/data.xml'
--- crm_claim/migrations/7.0.1.0/data.xml	1970-01-01 00:00:00 +0000
+++ crm_claim/migrations/7.0.1.0/data.xml	2013-10-25 16:49:59 +0000
@@ -0,0 +1,37 @@
+<?xml version = "1.0" encoding="utf-8"?>
+<openerp>
+    <data>
+
+        <!--
+        Case Stage
+        -->
+
+        <record model="crm.claim.stage" id="stage_claim1">
+            <field name="name">New</field>
+            <field name="state">draft</field>
+            <field name="sequence">26</field>
+            <field name="case_default" eval="True"/>
+        </record>
+        <record model="crm.claim.stage" id="stage_claim5">
+            <field name="name">In Progress</field>
+            <field name="state">open</field>
+            <field name="sequence">27</field>
+            <field name="case_default" eval="True"/>
+        </record>
+        <record model="crm.claim.stage" id="stage_claim2">
+            <field name="name">Settled</field>
+            <field name="state">done</field>
+            <field name="sequence">28</field>
+            <field name="case_default" eval="True"/>
+        </record>
+        <record model="crm.claim.stage" id="stage_claim3">
+            <field name="name">Rejected</field>
+            <field name="state">cancel</field>
+            <field name="sequence">29</field>
+            <field name="case_default" eval="True"/>
+            <field name="case_refused" eval="True"/>
+            <field name="fold" eval="True"/>
+        </record>
+
+    </data>
+</openerp>

=== added file 'crm_claim/migrations/7.0.1.0/post-migration.py'
--- crm_claim/migrations/7.0.1.0/post-migration.py	1970-01-01 00:00:00 +0000
+++ crm_claim/migrations/7.0.1.0/post-migration.py	2013-10-25 16:49:59 +0000
@@ -0,0 +1,30 @@
+# -*- encoding: utf-8 -*-
+#
+#    OpenERP, Open Source Management Solution
+#    This module copyright (C) 2013 Savoir-faire Linux
+#    (<http://www.savoirfairelinux.com>).
+#
+#    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 openupgrade import openupgrade
+
+
+@openupgrade.migrate()
+def migrate(cr, version):
+    openupgrade.load_xml(
+        cr, 'crm_claim',
+        'migrations/7.0.1.0/data.xml')
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:


Follow ups