9.0-10.0+, __openerp__.py → __manifest__.py


# rename all manifests
find . -type f -name __openerp__.py -exec rename 's/__openerp__.py/__manifest__.py/' '{}' \;

New references

# menu_hr_configuration
find . -type f -name '*.xml' | xargs sed -i 's/menu_hr_configuration/menu_human_resources_configuration/g'
# base.group_hr
find . -type f -name '*.csv'  -o -name '*.py' -o -name '*.xml'  | xargs sed -i 's/base.group_hr/hr.group_hr/g'
# website.salesteam_website_sales
find . -type f -name '*.csv'  -o -name '*.py' -o -name '*.xml'  | xargs sed -i 's/website.salesteam_website_sales/sales_team.salesteam_website_sales/g'
# base.group_sale_salesman
find . -type f -name '*.csv'  -o -name '*.py' -o -name '*.xml'  | xargs sed -i 's/base.group_sale_salesman/sales_team.group_sale_salesman/g'
# product.prod_config_main
find . -type f -name '*.xml' | xargs sed -i 's/product.prod_config_main/sale.prod_config_main/g'


DINAR helps to automate this process by using GIthub Actions and OCA/odoo-module-migrator:

  • install DINAR

  • Open an issue with name DINAR-PORT <BRANCH> <MODULE>

Check examples here: https://github.com/search?q=org%3Aitpp-labs+DINAR-PORT&type=issues