- Change
__openerp__.py
addon name field - Change
README.rst
file
sed -i 's/<old_name>/<new_name>/g' README.rst
- Change translations files (i18n folder, .po and .pot files)
cd i18n
mv '<old_name>.pot' '<new_name>.pot'
sed -i 's/#\(.*\)\* <old_name>/#\1* <new_name>/g' *.po*
sed -i 's/#\. module: <old_name>/#. module: <new_name>/g' *.po*
sed -i 's/#: view:\(.*\):<old_name>/#: view:\1:<new_name>/g' *.po*
sed -i 's/#: model:\(.*\),name:<old_name>/#: model:\1,name:<new_name>/g' *.po*
sed -i 's/#: code:\(.*\)\/<old_name>\//#: code:\1\/<new_name>\//g' *.po*
- Change XML ID (module part) on views, templates, records, ...
UPDATE ir_module_module SET name = '<new_name>' WHERE name = '<old_name>';
UPDATE ir_model_data SET module = '<new_name>' WHERE module = '<old_name>';
UPDATE ir_model_data SET name = 'module_<new_name>'
WHERE name = 'module_<old_name>'
AND module = 'base'
AND model = 'ir.module.module';
UPDATE ir_module_module_dependency SET name = '<new_name>'
WHERE name = '<old_name>';
UPDATE ir_translation SET module = '<new_name>'
WHERE module = '<old_name>';
- Change
__openerp__.py
addon depends field
This will update any translation
¡Genial!