[7.0] Incorrect behaviour for account.invoice.line migration (note & name)
Bug #1227929 reported by
Sylvain LE GAL (GRAP)
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
OpenUpgrade Addons | Status tracked in 7.0 | |||||
7.0 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Hi,
I think that there is a little bug in account module. In the merging of 'name' and 'note' field in account.
Reproduce the bug.
6.1 :
row #1 : {name : 'my name' ; note : 'my note'}
row #2 : {name : 'my name' ; note : None}
Expected datas after migration in 7.0 :
row #1 : {name : 'my name' + '\n' + 'my note'}
row #2 : {name : 'my name'}
Observed datas :
row #1 : {name : 'my name' + '\n' + 'my note'}
row #2 : {name : None}
Observed log :
WARNING : Table 'account_
Related branches
lp:~sylvain-legal/openupgrade-addons/7.0-fix-account-move-line-name
- Stefan Rijnhart (Opener): Approve
-
Diff: 45 lines (+9/-11)2 files modifiedaccount/migrations/7.0.1.1/post-migration.py (+9/-10)
account/migrations/7.0.1.1/pre-migration.py (+0/-1)
no longer affects: | openupgrade-addons/7.0 |
To post a comment you must log in.
Thank you for fixing this!
If someone got caught by this, they can fix it on an already migrated database with:
update account_ invoice_ line set name = openupgrade_ legacy_ 7_0_name where name is NULL and openupgrade_ legacy_ 7_0_name is not NULL;