credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #04848
lp:~therp-nl/openupgrade-addons/6.1-crm-base_action_rule-stock-procurement-sale into lp:openupgrade-addons
Holger Brunn (Therp) has proposed merging lp:~therp-nl/openupgrade-addons/6.1-crm-base_action_rule-stock-procurement-sale into lp:openupgrade-addons.
Requested reviews:
OpenUpgrade Committers (openupgrade-committers)
Related bugs:
Bug #983731 in OpenUpgrade Addons: "CRM module is not yet covered"
https://bugs.launchpad.net/openupgrade-addons/+bug/983731
For more details, see:
https://code.launchpad.net/~therp-nl/openupgrade-addons/6.1-crm-base_action_rule-stock-procurement-sale/+merge/108920
--
https://code.launchpad.net/~therp-nl/openupgrade-addons/6.1-crm-base_action_rule-stock-procurement-sale/+merge/108920
Your team OpenUpgrade Committers is requested to review the proposed merge of lp:~therp-nl/openupgrade-addons/6.1-crm-base_action_rule-stock-procurement-sale into lp:openupgrade-addons.
=== added file 'base_action_rule/migrations/6.1.1.0/user_notes.txt'
--- base_action_rule/migrations/6.1.1.0/user_notes.txt 1970-01-01 00:00:00 +0000
+++ base_action_rule/migrations/6.1.1.0/user_notes.txt 2012-06-06 11:24:23 +0000
@@ -0,0 +1,1 @@
+Nothing to do for module 'base_action_rule'
=== added directory 'crm/migrations/6.1.1.0/data'
=== added file 'crm/migrations/6.1.1.0/data/crm_lead_view.xml'
--- crm/migrations/6.1.1.0/data/crm_lead_view.xml 1970-01-01 00:00:00 +0000
+++ crm/migrations/6.1.1.0/data/crm_lead_view.xml 2012-06-06 11:24:23 +0000
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<openerp>
+<data>
+ <record id="crm_lead_stage_act" model="ir.actions.act_window">
+ <field name="name">Stages</field>
+ <field name="res_model">crm.case.stage</field>
+ <field name="view_type">form</field>
+ <field name="view_id" ref="crm.crm_case_stage_tree"/>
+ <field name="help">Add specific stages to leads and opportunities allowing your sales to better organise their sales pipeline. Stages will allow them to easily track how a specific lead or opportunity is positioned in the sales cycle.</field>
+ <field name="domain" />
+ <field name="context">{}</field>
+ </record>
+</data>
+</openerp>
=== added file 'crm/migrations/6.1.1.0/post-migration.py'
--- crm/migrations/6.1.1.0/post-migration.py 1970-01-01 00:00:00 +0000
+++ crm/migrations/6.1.1.0/post-migration.py 2012-06-06 11:24:23 +0000
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+
+from osv import osv
+import pooler, logging
+from openerp.openupgrade import openupgrade
+
+from openerp import SUPERUSER_ID
+
+logger = logging.getLogger('OpenUpgrade')
+me = __file__
+
+def migrate(cr, version):
+ try:
+ #former versions added domains and contexts for crm.case.stage's type field - remove them
+ #TODO: why is this record added in the database and not the original one overwritten?
+ openupgrade.load_data(cr, 'crm', 'migrations/6.1.1.0/data/crm_lead_view.xml')
+ except Exception, e:
+ raise osv.except_osv("OpenUpgrade", '%s: %s' % (me, e))
=== added file 'crm/migrations/6.1.1.0/pre-migration.py'
--- crm/migrations/6.1.1.0/pre-migration.py 1970-01-01 00:00:00 +0000
+++ crm/migrations/6.1.1.0/pre-migration.py 2012-06-06 11:24:23 +0000
@@ -0,0 +1,17 @@
+# -*- coding: utf-8 -*-
+
+from osv import osv
+import pooler, logging
+from openerp.openupgrade import openupgrade
+
+from openerp import SUPERUSER_ID
+
+logger = logging.getLogger('OpenUpgrade')
+me = __file__
+
+def migrate(cr, version):
+ try:
+ if openupgrade.table_exists(cr, 'res_partner_canal'):
+ openupgrade.rename_tables(cr, [('res_partner_canal', 'crm_case_channel')])
+ except Exception, e:
+ raise osv.except_osv("OpenUpgrade", '%s: %s' % (me, e))
=== added file 'crm/migrations/6.1.1.0/user_notes.txt'
--- crm/migrations/6.1.1.0/user_notes.txt 1970-01-01 00:00:00 +0000
+++ crm/migrations/6.1.1.0/user_notes.txt 2012-06-06 11:24:23 +0000
@@ -0,0 +1,11 @@
+Deleted fields:
+- type in crm_case_stage
+- freq in crm_meeting
+- canal_id in crm_phonecall
+they still exist in the database in case you need them.
+
+Otherwise remove them:
+
+alter table crm_case_stage drop column type
+alter table crm_meeting drop column freq
+alter table crm_phonecall drop column canal_id
=== added file 'procurement/migrations/6.1.1.0/user_notes.txt'
--- procurement/migrations/6.1.1.0/user_notes.txt 1970-01-01 00:00:00 +0000
+++ procurement/migrations/6.1.1.0/user_notes.txt 2012-06-06 11:24:23 +0000
@@ -0,0 +1,1 @@
+Nothing to do for module 'procurement'
=== added file 'sale/migrations/6.1.1.0/user_notes.txt'
--- sale/migrations/6.1.1.0/user_notes.txt 1970-01-01 00:00:00 +0000
+++ sale/migrations/6.1.1.0/user_notes.txt 2012-06-06 11:24:23 +0000
@@ -0,0 +1,1 @@
+Nothing to do for module 'sale'
=== added file 'stock/migrations/6.1.1.1/user_notes.txt'
--- stock/migrations/6.1.1.1/user_notes.txt 1970-01-01 00:00:00 +0000
+++ stock/migrations/6.1.1.1/user_notes.txt 2012-06-06 11:24:23 +0000
@@ -0,0 +1,1 @@
+Nothing to do for module 'stock'
Follow ups