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
1=== added file 'product/migrations/7.0.1.1/data.xml'
2--- product/migrations/7.0.1.1/data.xml 1970-01-01 00:00:00 +0000
3+++ product/migrations/7.0.1.1/data.xml 2013-07-15 09:00:42 +0000
4@@ -0,0 +1,10 @@
5+<?xml version="1.0" encoding="utf-8"?>
6+<openerp>
7+ <data>
8+ <!-- assign new name, as this is the primary key
9+ by which precisions are retrieved -->
10+ <record id="decimal_price" model="decimal.precision">
11+ <field name="name">Product Price</field>
12+ </record>
13+ </data>
14+</openerp>
15
16=== modified file 'product/migrations/7.0.1.1/post-migration.py'
17--- product/migrations/7.0.1.1/post-migration.py 2013-07-12 14:42:11 +0000
18+++ product/migrations/7.0.1.1/post-migration.py 2013-07-15 09:00:42 +0000
19@@ -20,8 +20,9 @@
20 ##############################################################################
21
22 from openupgrade import openupgrade
23-from openerp import pooler, SUPERUSER_ID
24
25 @openupgrade.migrate()
26 def migrate(cr, version):
27- pass
28+ openupgrade.load_xml(
29+ cr, 'product',
30+ 'migrations/7.0.1.1/data.xml')

Subscribers

People subscribed via source and target branches