Odoo Framework Unwrap

by
Odoo
v 11.0 Third Party 15
Download for v 11.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 139
Technical Name odoo_framework_unwrap
LicenseLGPL-3
You bought this module and need support? Click here!

Description

Converts an Odoo module into non framework code such as PHP and MySQL
*IMPORTANT* This module is designed for developers, do not use it to convert Odoo module or other community modules without permission
*IMPORTANT* The module only converts content within the selected module and skips content that inherits other modules

What this modules currently does
  • Connects to MySQL database via odbc
  • Creates MySQL tables from models created by the selected module
  • Converts Odoo char fields to MySQL varchar datatype

What this modules currently does not do
  • Everthing else

Install PyODBC Ubuntu

  • sudo apt install python3-pip
  • sudo apt install unixodbc-dev
  • sudo pip3 install pyodbc

Setup MySQL connection

  • Download driver from offical website https://dev.mysql.com/downloads/connector/odbc/
  • Extract and copy files under lib folder to /usr/lib/x86_64-linux-gnu/odbc/
  • Edit /etc/odbcinst.ini file and specify driver path
MySQL 5 example
[MySQL]
Description = ODBC for MySQL
Driver = /usr/lib/x86_64-linux-gnu/odbc/libmyodbc5a.so
Setup = /usr/lib/x86_64-linux-gnu/odbc/libodbcmyS.so
FileUsage = 1
  • Edit the /etc/odbc.ini file, actual connection details are provided inside Odoo
[my-connector]
Description           = MySQL connection to  database
Driver                = MySQL
  • In Odoo hit the "Check Data Sources" button so the newly setup driver can be selected
  • Finally hit the "Test Connection" button to make sure everything works, you may need to specify that the MySQL user can connect from the Odoo server host IP

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.