Commit Graph

232 Commits

Author SHA1 Message Date
oca-git-bot
98ff572016 [IMP] update dotfiles [ci skip] 2022-12-12 00:08:12 +01:00
OCA-git-bot
b8e8715c79 [ADD] setup.py 2022-11-27 15:59:18 +00:00
OCA-git-bot
24328f3ac1 [UPD] README.rst 2022-11-27 15:59:18 +00:00
OCA-git-bot
710dfe3c56 [UPD] addons table in README.md 2022-11-27 15:59:16 +00:00
oca-ci
618797f275 [UPD] Update base_external_system.pot 2022-11-27 15:56:51 +00:00
OCA-git-bot
7e51d52b69 Merge PR #172 into 15.0
Signed-off-by pedrobaeza
2022-11-27 15:55:02 +00:00
Cesar Andres Sanchez
f46233eb16 [MIG] base_external_system: Migration to 15.0 2022-11-27 16:46:06 +01:00
Cesar Andres Sanchez
2f3f56d476 [IMP] base_external_system: black, isort, prettier 2022-11-27 16:39:42 +01:00
Ronald Portier
a141799fe5 [FIX] base_external_system. Solve test error.
Testing fingerprint, with ignore_finger_print set to False, caused an error, because it would first set
ignore_fingerprint to False, then validate, never getting to actually setting the fingerprint, causing the
following stacktrace:
Traceback (most recent call last):

  File "/home/travis/build/OCA/server-backend/base_external_system/tests/test_external_system.py", line 28, in test_check_fingerprint_allowed

    self.record.write({"ignore_fingerprint": False, "fingerprint": "Data"})

  File "/home/travis/odoo-13.0/odoo/models.py", line 3573, in write

    fields[0].determine_inverse(real_recs)

  File "/home/travis/odoo-13.0/odoo/fields.py", line 1122, in determine_inverse

    self.inverse(records)

  File "/home/travis/odoo-13.0/odoo/fields.py", line 594, in _inverse_related

    target[field.name] = record_value[record]

  File "/home/travis/odoo-13.0/odoo/models.py", line 5629, in __setitem__

    return self._fields[key].__set__(self, value)

  File "/home/travis/odoo-13.0/odoo/fields.py", line 1087, in __set__

    records.write({self.name: write_value})

  File "/home/travis/odoo-13.0/odoo/models.py", line 3568, in write

    real_recs._validate_fields(set(vals) - set(inverse_fields))

  File "/home/travis/odoo-13.0/odoo/models.py", line 1176, in _validate_fields

    check(self)
2022-11-27 16:39:42 +01:00
Ronald Portier
bc7f038b54 [FIX] base_external_system. Correct file modes. 2022-11-27 16:39:42 +01:00
Ronald Portier
9087b53bfd [MIG] base_external_system Migration to 13.0 2022-11-27 16:39:42 +01:00
Ronald Portier
df7608d90b [IMP] : black, isort, prettier 2022-11-27 16:39:42 +01:00
Alexandre Díaz
5b5b55c8c7 [MIG] base_external_system: Migration to 12.0 2022-11-27 16:39:42 +01:00
Dave Lasley
63470c5dc9 [MIG] base_external_system: Upgrade to v11
* Perform standard v11 migration
2022-11-27 16:39:42 +01:00
Dave Lasley
c11c3cd251 [IMP] base_external_system: Add create bypass
* In cases of deep inheritance, it may be required to create an adapter directly. Add an override in the create via the env context to support this.
* Add default system type if creating from an interface
* Fix interface assignment during creation in adapter
2022-11-27 16:39:42 +01:00
Dave Lasley
21df00169e [ADD] base_external_system: Implement interface/adapter (#993)
* [ADD] base_external_system: Implement interface/adapter for external systems

* base_external_system: Fix OS model, add inherits, add validate

* base_external_system: Usability and private key pass

* base_external_system: Use contextmanager in adapter client

* base_external_system: Move contextmanager to interface

* base_external_system: Include contextmanager on adapter and system

* base_external_system: Unify client

* Use password widget for password field

* Add tests & security

* Fix lint

* Add plaintext note
2022-11-27 16:39:42 +01:00
OCA-git-bot
e259028623 [ADD] setup.py 2022-11-21 11:01:10 +00:00
OCA-git-bot
6263f56d76 [UPD] README.rst 2022-11-21 11:01:09 +00:00
OCA-git-bot
8734a1569d [UPD] addons table in README.md 2022-11-21 11:01:08 +00:00
oca-ci
1b96d628cb [UPD] Update base_external_dbsource_mssql.pot 2022-11-21 10:58:44 +00:00
OCA-git-bot
27ac83a1d1 Merge PR #200 into 15.0
Signed-off-by pedrobaeza
2022-11-21 10:56:55 +00:00
Víctor Martínez
3743e2d8a6 [MIG] base_external_dbsource_mssql: Migration to 15.0
TT38357
2022-11-18 12:58:41 +01:00
Víctor Martínez
76b4d8d2c0 [IMP] base_external_dbsource_mssql: black, isort, prettier 2022-11-18 12:57:16 +01:00
Moisés López - https://www.vauxoo.com/
d854fd8b4d REF] requirements.txt: Use "pymssql<=2.2.5" to fix "Failed building wheel for pymssql" (#196)
The new `pymssql==2.2.6` version released this weekend
  - <img width="414" alt="Screenshot 2022-11-15 at 20 11 53" src="https://user-images.githubusercontent.com/6644187/202066666-a1551d22-d50a-4c14-ae0a-dd35dc147a40.png">

requires extra setup to be installed

So, it is raising new errors where it is not setup

You can reproduce it running the following command:

    docker run -it --rm  python:3.6 pip3 install -q pymssql==2.2.6

`ERROR: Could not build wheels for pymssql...`

  ERROR: Command errored out with exit status 1:
    command: /usr/local/bin/python /usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpmp6b33ly
        cwd: /tmp/pip-install-p4ocn1ip/pymssql_01748f191a744758bda6f7d536f6ec35
    Complete output (25 lines):
    setup.py: platform.system() => Linux
    setup.py: platform.architecture() => ('64bit', 'ELF')
    setup.py: platform.libc_ver() => ('glibc', '2.2.5')
    setup.py: include_dirs => []
    setup.py: library_dirs => []
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    creating build/lib.linux-x86_64-3.6/pymssql
    copying src/pymssql/__init__.py -> build/lib.linux-x86_64-3.6/pymssql
    running build_ext
    cythoning src/pymssql/_mssql.pyx to src/pymssql/_mssql.c
    cythoning src/pymssql/_pymssql.pyx to src/pymssql/_pymssql.c
    building 'pymssql._mssql' extension
    creating build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/src
    creating build/temp.linux-x86_64-3.6/src/pymssql
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.6m -c src/pymssql/_mssql.c -o build/temp.linux-x86_64-3.6/src/pymssql/_mssql.o -DMSDBLIB
    src/pymssql/_mssql.c:747:10: fatal error: sqlfront.h: No such file or directory
      747 | #include "sqlfront.h"
          |          ^~~~~~~~~~~~
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
    ERROR: Failed building wheel for pymssql
  ERROR: Could not build wheels for pymssql which use PEP 517 and cannot be installed directly
  WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
  You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
  FAIL

However, using

    docker run -it --rm  python:3.6 pip3 install -q pymssql==2.2.5

It is installing well!

So, I have created this PR in order to fix all the error in the CI using this project and installing this package
2022-11-18 12:57:00 +01:00
Sergio Teruel
a4439e3d63 [MIG] base_external_dbsource_mssql: Migration to v13.0
[UPD] Update base_external_dbsource_mssql.pot
2022-11-18 12:57:00 +01:00
Sergio Teruel
90b71def03 [MIG] base_external_dbsource_mssql: Migration to v12.0
[UPD] Update base_external_dbsource_mssql.pot
2022-11-18 12:57:00 +01:00
Sergio Teruel Albert
a0710a866a [11.0][MIG] base_external_dbsource_mssql: Migration to v11.0
[UPD] README.rst

[UPD] Update base_external_dbsource_mssql.pot

[UPD] README.rst
2022-11-18 12:57:00 +01:00
Dave Lasley
63283bd81d [IMP] base_external_dbsource: Refactor & Split by source
* Heavily refactor code for reusability
* Split all sources into independent modules
* Add more test coverage
* Add CRUD methods
* Add iterator execute return to roadmap

[UPD] Update base_external_dbsource_mssql.pot
2022-11-18 12:57:00 +01:00
OCA-git-bot
3c2a054d79 [ADD] setup.py 2022-11-18 11:09:05 +00:00
OCA-git-bot
fa8662aa9d [UPD] README.rst 2022-11-18 11:09:05 +00:00
OCA-git-bot
9fe66168b4 [UPD] addons table in README.md 2022-11-18 11:09:04 +00:00
oca-ci
d718aecfd1 [UPD] Update base_external_dbsource_sqlite.pot 2022-11-18 11:05:41 +00:00
OCA-git-bot
0a125187d6 Merge PR #199 into 15.0
Signed-off-by pedrobaeza
2022-11-18 11:03:52 +00:00
Víctor Martínez
d4b141ff1d [MIG] base_external_dbsource_sqlite: Migration to 15.0
TT38359
2022-11-18 08:30:44 +01:00
Víctor Martínez
f3bb7468e1 [IMP] base_external_dbsource_sqlite: black, isort, prettier 2022-11-18 08:18:14 +01:00
Sergio Teruel
cf927ca7c2 [MIG] base_external_dbsource_sqlite: Migration to v13.0
[UPD] Update base_external_dbsource_sqlite.pot

[UPD] README.rst
2022-11-18 08:18:13 +01:00
Sergio Teruel
0d8425f69a [MIG] base_external_dbsource_sqlite: Migration to v12.0
[UPD] Update base_external_dbsource_sqlite.pot
2022-11-18 08:18:11 +01:00
Adrià Gil Sorribes
fce4f47468 Extend test coverage
[ADD] icon.png

[UPD] README.rst
2022-11-18 08:18:10 +01:00
Adrià Gil Sorribes
503f3d94a7 [FIX] base_external_dbsource_sqlite crashing when sqlparams equal None 2022-11-18 08:18:10 +01:00
Sergio Teruel Albert
24f962dd36 [11.0][MIG] base_external_dbsource_sqlite: Migration to v11.0
[UPD] README.rst

[UPD] Update base_external_dbsource_sqlite.pot
2022-11-18 08:18:09 +01:00
Dave Lasley
a718447ee0 [IMP] base_external_dbsource: Refactor & Split by source
* Heavily refactor code for reusability
* Split all sources into independent modules
* Add more test coverage
* Add CRUD methods
* Add iterator execute return to roadmap

[UPD] Update base_external_dbsource_sqlite.pot
2022-11-18 08:18:07 +01:00
Weblate
6f7d257962 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-backend-15.0/server-backend-15.0-base_external_dbsource
Translate-URL: https://translation.odoo-community.org/projects/server-backend-15-0/server-backend-15-0-base_external_dbsource/
2022-11-18 00:59:50 +00:00
OCA-git-bot
759f2d3146 [ADD] setup.py 2022-11-17 20:36:47 +00:00
OCA-git-bot
ac2c894ed2 [UPD] README.rst 2022-11-17 20:36:47 +00:00
OCA-git-bot
5c9c15cd72 [UPD] addons table in README.md 2022-11-17 20:36:46 +00:00
oca-ci
2102cb911a [UPD] Update base_external_dbsource.pot 2022-11-17 20:34:23 +00:00
OCA-git-bot
5e1832b7de Merge PR #180 into 15.0
Signed-off-by pedrobaeza
2022-11-17 20:32:38 +00:00
Carlos Dauden
1b59099929 [MIG] base_external_dbsource: Migration to v15.0
TT37273
2022-11-17 11:46:50 +01:00
Víctor Martínez
4e1051ac8e [IMP] base_external_dbsource: black, isort, prettier 2022-11-17 11:46:50 +01:00
Víctor Martínez
d47ca823bf [FIX] base_external_dbsource: Remove tests that do not work and cannot be tested (it is not possible to test the connection with odoo postgress).
base_external_dbsource 14.0.1.0.1
2022-11-17 11:46:50 +01:00