Merge lp:~camptocamp/openobject-addons/7.0-fix-1088412 into lp:openobject-addons/7.0
Proposed by
Alexandre Fayolle - camptocamp
Status: | Needs review |
---|---|
Proposed branch: | lp:~camptocamp/openobject-addons/7.0-fix-1088412 |
Merge into: | lp:openobject-addons/7.0 |
Diff against target: |
65 lines (+15/-4) 4 files modified
stock/__openerp__.py (+1/-1) stock/migrations/7.0.1.1.1/pre-rename_sequence_code.py (+11/-0) stock/stock.py (+1/-1) stock/stock_sequence.xml (+2/-2) |
To merge this branch: | bzr merge lp:~camptocamp/openobject-addons/7.0-fix-1088412 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Nicolas Bessi - Camptocamp (community) | no test, code review only | Approve | |
Olivier Dony (Odoo) | Pending | ||
OpenERP Core Team | Pending | ||
Review via email: mp+164740@code.launchpad.net |
Description of the change
fix the sequence type code for internal stock pickings. Update the data for existing databases.
To post a comment you must log in.
Unmerged revisions
- 9145. By Alexandre Fayolle - camptocamp
-
[FIX] stock.picking: fix the case which was broken by previous change
- 9144. By Alexandre Fayolle - camptocamp
-
[IMP] set version to 1.1.1 rather than 1.2
- 9143. By Alexandre Fayolle - camptocamp
-
[FIX] added migration script to ensure the correct name of the sequence type in pre existing databases
- 9142. By Paramjit Singh Sahota(OpenERP)
-
[FIX] change the name to the sequence code for internal pickings
when a chained picking is generated, the sequence code used is "stock.picking.%s" % picking.type
so we need a sequence code "stock.picking. internal" for internal pickings (and not "stock.picking")
Looks good to me. Using migrate function will be better than using init function.
I'm a little bit worried if an exception happens as I have not a global vision of cursor transaction management of the migrate function. If someone from OpenERP can gave more explanation about it it will be nice.