mirror of
https://github.com/OCA/maintainer-tools.git
synced 2026-04-24 06:03:45 -06:00
Page:
Migration to version 9.0
Pages
Conventions
Create a new repository
Home
How to move a Merge Proposal to GitHub
Install pre commit
Merge commits in pull requests
Migration Launchpad → GitHub
Migration to version 10.0
Migration to version 11.0
Migration to version 12.0
Migration to version 13.0
Migration to version 14.0
Migration to version 15.0
Migration to version 16.0
Migration to version 17.0
Migration to version 18.0
Migration to version 19.0
Migration to version 8.0
Migration to version 9.0
Use temporary reference(s) to another pull request(s)
[FAQ] Missing modules in migration issue list
No results
14
Migration to version 9.0
Pedro M. Baeza edited this page 2017-11-03 16:19:08 +01:00
Before migrating
- Update yourself with the latest OCA Conventions: https://github.com/OCA/maintainer-tools/blob/master/CONTRIBUTING.md
- Subscribe to the mailing list of the related project: https://odoo-community.org/groups
- Announce on the mailing list which modules you want to migrate
Todo
- Update README.rst from https://raw.githubusercontent.com/OCA/maintainer-tools/master/template/module/README.rst
- Remove any possible migration script from previous version.
- Add tests to increase code coverage
- Update code to remove use of deprecated methods
- Update code to take advantage of the new features
- Migrate code to new ORM API.
- Bump module version to "9.0.1.0.0"
- Replace
select = Truebyindex = True - Replace string selectors in XML by name (if possible) or other attribute selector or even another equivalent path/reference. For example, change
<group string="x" position="after">by<group name="x" position="after"> - Remove
<data>and</data>in xml files ifnoupdate="0"
Howto
Technical method to migrate a module from "8.0" to "9.0" branch
<repo>: the OCA repository hosting the module<module>: the name of the module you want to migrate<user/org>: your Github login or organization name
$ git remote update # In case the repo was already cloned before
$ git checkout -b 9.0-mig-<module> origin/9.0
$ git format-patch --stdout origin/9.0..origin/8.0 -- <module path> | git am -3
Initialization (already done in OCA)
Before migrating the first module, the following tasks must be performed:
- Create 9.0 branch from 8.0
- Delete
__unported__directory - Update all modules manifest with installable = False
- Update metafiles (.travis.yml and README.md), adapting them from the template in https://github.com/OCA/maintainer-quality-tools/tree/master/sample_files to have the proper data.
- Make 9.0 default branch
- Remove master branch if it still exists