Odoo Help


How to split a big module that is already installed to smaller ones?

Tani Maria and Sons Co.
on 12/29/15, 3:07 AM 870 views

I have a big module based on mrp that adds product waste, ingredients list calculation, line costing evaluation, additional costs etc.
The module is installed and works fine.

A need arose though to split the module to smaller ones.
What is the correct way to split a module that is already installed?

I can rework and refactor and test the code to the development pc but how to I handle replacing the one big module with the 4 new smaller ones without losing existing data at the production machine?


Axel Mendoza

--Axel Mendoza--
| 7 8 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full-time employee trying to understand what to do and how

Reach me at aekroft@gmail.com

Axel Mendoza
On 12/29/15, 4:58 AM

I think that these steps should work. Test it first in the development environment

- Create the modules as empty, without models and views or anything else. Think that you will need to keep the already installed big one. Put as dependencies only installed modules if you will need them latter

- Install the empty modules

- Move the models and views for the corresponding new modules

- Restart the odoo server and update module list just to be safe

- Update the modules if you need too

- Check the logs in all the steps to ensure that nothing relevant is deleted

- Don't move records that could cause that changed data of those records could be restored to initial state. If you need to do it then update their module reference of those records directly on ir.model.data to get it not modified by updates of modules. These record normally are initial data load defined on the module xml to be inserted, like users, products or any other defined configuration to get the job ready to start

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 12/29/15, 3:07 AM
Seen: 870 times
Last updated: 8/27/16, 2:21 AM