13 Commits

Author SHA1 Message Date
OCA-git-bot
fe9e55ba7a [UPD] README.rst 2023-09-03 16:35:25 +00:00
OCA-git-bot
c4389be9c6 base_external_system 13.0.1.0.1 2023-07-06 15:20:36 +00:00
JordiMForgeFlow
6c496c114a [IMP] update pre-commit 2023-07-06 16:50:56 +02:00
OCA-git-bot
5da300c04c [UPD] README.rst 2021-07-04 00:01:24 +00:00
oca-travis
a8720c864a [UPD] Update base_external_system.pot 2021-07-03 21:38:12 +00:00
Ronald Portier
d15dbcac86 [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)
2020-08-21 12:09:22 +02:00
Ronald Portier
1815585ab6 [FIX] base_external_system. Correct file modes. 2020-08-21 11:31:23 +02:00
Ronald Portier
c5f14c3a45 [MIG] base_external_system Migration to 13.0 2020-08-21 11:31:23 +02:00
Ronald Portier
e05496d065 [IMP] : black, isort, prettier 2020-08-21 11:10:38 +02:00
Alexandre Díaz
c6b20605ce [MIG] base_external_system: Migration to 12.0 2020-08-20 14:07:51 +02:00
Dave Lasley
a724c87042 [MIG] base_external_system: Upgrade to v11
* Perform standard v11 migration
2020-08-20 14:07:51 +02:00
Dave Lasley
19c3d1100b [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
2020-08-20 13:59:17 +02:00
Dave Lasley
0c879cf0cf [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
2020-08-20 13:59:17 +02:00