Skip to content

Commit 024f86c

Browse files
committed
Merge PR #366 into 17.0
Signed-off-by pedrobaeza
2 parents 92e4fe5 + 5345b4b commit 024f86c

27 files changed

+966
-0
lines changed
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
================================
2+
External Database Source - MySQL
3+
================================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:dbfb3a74255192dbba49a5fee95d2e3f8f3e0c4e592e9307a1f653f266c3b7e7
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
18+
:alt: License: LGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--backend-lightgray.png?logo=github
20+
:target: https://github.com/OCA/server-backend/tree/17.0/base_external_dbsource_mysql
21+
:alt: OCA/server-backend
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/server-backend-17-0/server-backend-17-0-base_external_dbsource_mysql
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-backend&target_branch=17.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module extends ``base_external_dbsource``, allowing you to connect
32+
to foreign MySQL databases using SQLAlchemy.
33+
34+
**Table of contents**
35+
36+
.. contents::
37+
:local:
38+
39+
Installation
40+
============
41+
42+
To install this module, you need to:
43+
44+
- Install ``libmysqlclient-dev`` package
45+
(``default-libmysqlclient-dev`` on Debian)
46+
- Install ``sqlalchemy`` and ``mysqlclient`` python libraries
47+
48+
Configuration
49+
=============
50+
51+
To configure this module, you need to:
52+
53+
1. Database sources can be configured in Settings > Technical > Database
54+
Structure > Database sources.
55+
56+
Usage
57+
=====
58+
59+
To use this module:
60+
61+
- Go to Settings > Technical > Database Structure > Database Sources
62+
- Click on Create to enter the following information:
63+
- Datasource name??
64+
- Pasword
65+
- Connector: Choose the database to which you want to connect
66+
- Connection string: Specify how to connect to database
67+
68+
Known issues / Roadmap
69+
======================
70+
71+
- Add X.509 authentication
72+
73+
Bug Tracker
74+
===========
75+
76+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-backend/issues>`_.
77+
In case of trouble, please check there if your issue has already been reported.
78+
If you spotted it first, help us to smash it by providing a detailed and welcomed
79+
`feedback <https://github.com/OCA/server-backend/issues/new?body=module:%20base_external_dbsource_mysql%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
80+
81+
Do not contact contributors directly about support or help with technical issues.
82+
83+
Credits
84+
=======
85+
86+
Authors
87+
-------
88+
89+
* Daniel Reis
90+
* LasLabs
91+
92+
Contributors
93+
------------
94+
95+
- Daniel Reis <[email protected]>
96+
97+
- Maxime Chambreuil <[email protected]>
98+
99+
- Gervais Naoussi <[email protected]>
100+
101+
- Dave Lasley <[email protected]>
102+
103+
- `Tecnativa <https://www.tecnativa.com>`__:
104+
105+
- Sergio Teruel
106+
107+
- David Alonso <[email protected]>
108+
109+
Maintainers
110+
-----------
111+
112+
This module is maintained by the OCA.
113+
114+
.. image:: https://odoo-community.org/logo.png
115+
:alt: Odoo Community Association
116+
:target: https://odoo-community.org
117+
118+
OCA, or the Odoo Community Association, is a nonprofit organization whose
119+
mission is to support the collaborative development of Odoo features and
120+
promote its widespread use.
121+
122+
This module is part of the `OCA/server-backend <https://github.com/OCA/server-backend/tree/17.0/base_external_dbsource_mysql>`_ project on GitHub.
123+
124+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright <2011> <Daniel Reis, Maxime Chambreuil, Savoir-faire Linux>
2+
# Copyright 2016 LasLabs Inc.
3+
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
4+
{
5+
"name": "External Database Source - MySQL",
6+
"version": "17.0.1.0.0",
7+
"category": "Tools",
8+
"author": "Daniel Reis, LasLabs, Odoo Community Association (OCA)",
9+
"website": "https://github.com/OCA/server-backend",
10+
"license": "LGPL-3",
11+
"depends": ["base_external_dbsource"],
12+
"external_dependencies": {"python": ["sqlalchemy", "mysqlclient"]},
13+
"demo": ["demo/base_external_dbsource.xml"],
14+
"installable": True,
15+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" ?>
2+
<odoo>
3+
<record model="base.external.dbsource" id="demo_mysql">
4+
<field name="name">MySQL Demo</field>
5+
<field
6+
name="conn_string"
7+
>Server=myServerAddress;Database=myDataBase;Uid=myUsername;</field>
8+
<field name="password">password</field>
9+
<field name="connector">mysql</field>
10+
</record>
11+
</odoo>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * base_external_dbsource_mysql
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: \n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: base_external_dbsource_mysql
17+
#: model:ir.model,name:base_external_dbsource_mysql.model_base_external_dbsource
18+
msgid "External Database Sources"
19+
msgstr ""
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * base_external_dbsource_mysql
4+
#
5+
# Translators:
6+
# Rudolf Schnapka <[email protected]>, 2017
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: Odoo Server 10.0\n"
10+
"Report-Msgid-Bugs-To: \n"
11+
"POT-Creation-Date: 2017-05-10 00:47+0000\n"
12+
"PO-Revision-Date: 2017-05-10 00:47+0000\n"
13+
"Last-Translator: Rudolf Schnapka <[email protected]>, 2017\n"
14+
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
15+
"Language: de\n"
16+
"MIME-Version: 1.0\n"
17+
"Content-Type: text/plain; charset=UTF-8\n"
18+
"Content-Transfer-Encoding: \n"
19+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
20+
21+
#. module: base_external_dbsource_mysql
22+
#: model:ir.model,name:base_external_dbsource_mysql.model_base_external_dbsource
23+
msgid "External Database Sources"
24+
msgstr "Externe Datenbankquellen"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * base_external_dbsource_mysql
4+
#
5+
# Translators:
6+
# Fernando Lara <[email protected]>, 2017
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: Odoo Server 10.0\n"
10+
"Report-Msgid-Bugs-To: \n"
11+
"POT-Creation-Date: 2017-02-22 00:54+0000\n"
12+
"PO-Revision-Date: 2017-02-22 00:54+0000\n"
13+
"Last-Translator: Fernando Lara <[email protected]>, 2017\n"
14+
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
15+
"Language: es\n"
16+
"MIME-Version: 1.0\n"
17+
"Content-Type: text/plain; charset=UTF-8\n"
18+
"Content-Transfer-Encoding: \n"
19+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
20+
21+
#. module: base_external_dbsource_mysql
22+
#: model:ir.model,name:base_external_dbsource_mysql.model_base_external_dbsource
23+
msgid "External Database Sources"
24+
msgstr "Fuentes externas de la base de datos"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * base_external_dbsource_mysql
4+
#
5+
# Translators:
6+
# Bole <[email protected]>, 2017
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: Odoo Server 10.0\n"
10+
"Report-Msgid-Bugs-To: \n"
11+
"POT-Creation-Date: 2017-05-10 00:47+0000\n"
12+
"PO-Revision-Date: 2017-05-10 00:47+0000\n"
13+
"Last-Translator: Bole <[email protected]>, 2017\n"
14+
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
15+
"Language: hr\n"
16+
"MIME-Version: 1.0\n"
17+
"Content-Type: text/plain; charset=UTF-8\n"
18+
"Content-Transfer-Encoding: \n"
19+
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
20+
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
21+
22+
#. module: base_external_dbsource_mysql
23+
#: model:ir.model,name:base_external_dbsource_mysql.model_base_external_dbsource
24+
msgid "External Database Sources"
25+
msgstr "Vanjske baze"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * base_external_dbsource_mysql
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2024-04-19 09:36+0000\n"
10+
"Last-Translator: mymage <[email protected]>\n"
11+
"Language-Team: none\n"
12+
"Language: it\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 4.17\n"
18+
19+
#. module: base_external_dbsource_mysql
20+
#: model:ir.model,name:base_external_dbsource_mysql.model_base_external_dbsource
21+
msgid "External Database Sources"
22+
msgstr "Origini database esterne"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * base_external_dbsource_mysql
4+
#
5+
# Translators:
6+
# Peter Hageman <[email protected]>, 2017
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: Odoo Server 10.0\n"
10+
"Report-Msgid-Bugs-To: \n"
11+
"POT-Creation-Date: 2017-06-22 01:11+0000\n"
12+
"PO-Revision-Date: 2017-06-22 01:11+0000\n"
13+
"Last-Translator: Peter Hageman <[email protected]>, 2017\n"
14+
"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/"
15+
"teams/23907/nl_NL/)\n"
16+
"Language: nl_NL\n"
17+
"MIME-Version: 1.0\n"
18+
"Content-Type: text/plain; charset=UTF-8\n"
19+
"Content-Transfer-Encoding: \n"
20+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
21+
22+
#. module: base_external_dbsource_mysql
23+
#: model:ir.model,name:base_external_dbsource_mysql.model_base_external_dbsource
24+
msgid "External Database Sources"
25+
msgstr "Externe databasebronnen"

0 commit comments

Comments
 (0)