Commit Graph

15 Commits

Author SHA1 Message Date
Ivorra78
090929444c Translated using Weblate (Spanish)
Currently translated at 100.0% (43 of 43 strings)

Translation: server-backend-15.0/server-backend-15.0-base_external_system
Translate-URL: https://translation.odoo-community.org/projects/server-backend-15-0/server-backend-15-0-base_external_system/es/
2023-10-09 07:49:38 +00:00
Ivorra78
6eabf5da3f Added translation using Weblate (Spanish) 2023-09-20 05:13:04 +00:00
OCA-git-bot
6a0dbff38c [UPD] README.rst 2023-09-03 16:36:22 +00:00
OCA-git-bot
24328f3ac1 [UPD] README.rst 2022-11-27 15:59:18 +00:00
oca-ci
618797f275 [UPD] Update base_external_system.pot 2022-11-27 15:56:51 +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