Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 878 |
Technical Name |
sql_connect |
License | OPL-1 |
Website | http://www.facebook.com/fasilwdr |
Versions | 16.0 17.0 18.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 878 |
Technical Name |
sql_connect |
License | OPL-1 |
Website | http://www.facebook.com/fasilwdr |
Versions | 16.0 17.0 18.0 |
Overview
Odoo SQL Sync is an Odoo module that enables seamless database integration between Odoo and various SQL databases. It supports bi-directional data transfer and can be configured for automated synchronization.
Features
- Connect to multiple SQL database types:
- Microsoft SQL Server
- PostgreSQL
- MySQL
- SQLite
- Oracle
- Bi-directional data transfer:
- SQL to Odoo
- Odoo to SQL
- Flexible mapping options:
- Field-to-field mapping
- Custom SQL query mapping
- Multiple integration types:
- Create new records
- Create if not exists
- Update existing records
- Update and create if not exists
- Automated synchronization with scheduled tasks
- Comprehensive filtering options for both Odoo and SQL
- Support for related fields and custom values
- Test connection functionality
- Active/Inactive status tracking
Supported in
Installation
Prerequisites
The following Python packages are required based on your database needs:
pip install sqlalchemy
(Mandatory)pip install pyodbc
(Required if use Microsoft SQL Server)pip install mysql-connector-python
(Required if use MySQL)pip install sqlite
(Required if use SQLite)pip install cx_oracle
(Required if use Oracle)
Module Installation
- Copy the module to your Odoo addons directory
- Update your Odoo apps list and Install
Configuration
1. SQL Connection Setup
Navigate to Settings > SQL Sync > SQL Connections
and create a new connection:
- Name: Give your connection a descriptive name
- Server Type: Select your database type
- Host: Database server address
- Port: Database port (auto-filled based on server type)
- Database: Database name/path
- SQL User: Database username
- SQL User Password: Database password
2. Transfer Configuration
Navigate to Settings > SQL Sync > SQL Transfer
and create a new transfer:
-
Basic Settings:
- Name: Description of the transfer
- Transfer Type: SQL to Odoo or SQL to Odoo
- Integration Type: Create/Update strategy
- SQL Connection: Select your configured connection
-
Mapping Configuration:
- Select Odoo Model
- Enter SQL Table Name
- Configure field mappings or SQL queries
- Set up filters and conditions
-
Automation (Optional):
- Enable automation
- Configure scheduling parameters
Usage
Manual Transfer
- Configure your transfer settings
- Click
Confirm
to validate the configuration - Click
Run Manually
to execute the transfer
Automated Transfer
- Configure your transfer settings
- Enable automation from the Automation tab
- Set up the desired schedule
- The transfer will run automatically according to the schedule
Maintainers
This module is maintained by fasilwdr@hotmail.com.
Support
For support and inquiries, contact:
- Email: fasilwdr@hotmail.com
- WhatsApp: https://wa.me/966538952934
- Facebook: https://www.facebook.com/fasilwdr
- Instagram: https://www.instagram.com/fasilwdr
License
This module is licensed under the Odoo Proprietary License (OPL-1).
Changelog
17.0.1.0.1
- Initial release
- Support for multiple database types
- Bi-directional data transfer
- Field and query mapping
- Automated synchronization
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedThere are no ratings yet!
can i sync odoo sh and odoo onpremes
Re: can i sync odoo sh and odoo onpremes
You can use this module in both Odoo.sh and Odoo on-premises.
However, in Odoo.sh, there is no option to install system dependencies (e.g., pyodbc driver), so MS SQL synchronization is not supported. You can still connect to PostgreSQL, MySQL, SQLite, and Oracle databases. Ensure that the required Python packages are installed as mentioned in the documentation.
For any support, you can reach us at support@bytesraw.com.