Merge lp:~therp-nl/openupgrade-addons/7.0-product_rename_precision into lp:openupgrade-addons

Proposed by Stefan Rijnhart (Opener)
Status: Merged
Merged at revision: 8127
Proposed branch: lp:~therp-nl/openupgrade-addons/7.0-product_rename_precision
Merge into: lp:openupgrade-addons
Diff against target: 30 lines (+13/-2)
2 files modified
product/migrations/7.0.1.1/data.xml (+10/-0)
product/migrations/7.0.1.1/post-migration.py (+3/-2)
To merge this branch: bzr merge lp:~therp-nl/openupgrade-addons/7.0-product_rename_precision
Reviewer Review Type Date Requested Status
Sébastien BEAU - http://www.akretion.com (community) Approve
Review via email: mp+174671@code.launchpad.net

Description of the change

Implementing fix for product precision name as suggested by Sébastien Beau.

To post a comment you must log in.
Revision history for this message
Sébastien BEAU - http://www.akretion.com (sebastien.beau) wrote :

It's Ok for me, good work

review: Approve
Revision history for this message
Sylvain LE GAL (GRAP) (sylvain-legal) wrote :

Hi.

It works.

Thanks Sébastien for your review & thanks Stephan for the fix.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'product/migrations/7.0.1.1/data.xml'
--- product/migrations/7.0.1.1/data.xml 1970-01-01 00:00:00 +0000
+++ product/migrations/7.0.1.1/data.xml 2013-07-15 09:00:42 +0000
@@ -0,0 +1,10 @@
1<?xml version="1.0" encoding="utf-8"?>
2<openerp>
3 <data>
4 <!-- assign new name, as this is the primary key
5 by which precisions are retrieved -->
6 <record id="decimal_price" model="decimal.precision">
7 <field name="name">Product Price</field>
8 </record>
9 </data>
10</openerp>
011
=== modified file 'product/migrations/7.0.1.1/post-migration.py'
--- product/migrations/7.0.1.1/post-migration.py 2013-07-12 14:42:11 +0000
+++ product/migrations/7.0.1.1/post-migration.py 2013-07-15 09:00:42 +0000
@@ -20,8 +20,9 @@
20##############################################################################20##############################################################################
2121
22from openupgrade import openupgrade22from openupgrade import openupgrade
23from openerp import pooler, SUPERUSER_ID
2423
25@openupgrade.migrate()24@openupgrade.migrate()
26def migrate(cr, version):25def migrate(cr, version):
27 pass26 openupgrade.load_xml(
27 cr, 'product',
28 'migrations/7.0.1.1/data.xml')

Subscribers

People subscribed via source and target branches