This modular approach allows Odoo to keep the base open-source while selling advanced logic (like complex margin calculations, electronic signatures, or advanced dashboarding) as the proprietary Enterprise source.
# mymodule/models/mymodel.py
While the source code for Odoo Enterprise Edition is not publicly available, there are some ways to access parts of the code: odoo enterprise source code