diff --git a/base_upflow/README.rst b/base_upflow/README.rst index 0e020bc2a..2ba289365 100644 --- a/base_upflow/README.rst +++ b/base_upflow/README.rst @@ -7,7 +7,7 @@ Base Upflow.io !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:bd21d053b40a9912cbd5c2ebd07de0691a56ce1d8f3d68a9bb47ce3e7451c062 + !! source digest: sha256:d7c3cc9b72154534c57c4158ea7aef658511c0609a2631b2b5d2680065011595 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png diff --git a/base_upflow/__manifest__.py b/base_upflow/__manifest__.py index 376a95c71..89204ebba 100644 --- a/base_upflow/__manifest__.py +++ b/base_upflow/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Base Upflow.io", "summary": "Base module to generate Upflow.io API payloads format from odoo object", - "version": "14.0.1.1.0", + "version": "14.0.2.0.0", "development_status": "Alpha", "category": "EDI", "website": "https://github.com/OCA/credit-control", diff --git a/base_upflow/models/account_partial_reconcile.py b/base_upflow/models/account_partial_reconcile.py index 784bf948f..826522965 100644 --- a/base_upflow/models/account_partial_reconcile.py +++ b/base_upflow/models/account_partial_reconcile.py @@ -10,7 +10,7 @@ class AccountPartialReconcile(models.Model): def _prepare_reconcile_payload(self): payload = { - "externalId": str(self.id), + "externalId": "partial-" + str(self.id), "invoices": [], "payments": [], "creditNotes": [], diff --git a/base_upflow/static/description/index.html b/base_upflow/static/description/index.html index fe6c82b42..f63479340 100644 --- a/base_upflow/static/description/index.html +++ b/base_upflow/static/description/index.html @@ -367,7 +367,7 @@
This modules provide methods to generate upflow.io diff --git a/base_upflow/tests/test_upflow_post_invoices_payload.py b/base_upflow/tests/test_upflow_post_invoices_payload.py index 35ee3c49d..588f4c8f8 100644 --- a/base_upflow/tests/test_upflow_post_invoices_payload.py +++ b/base_upflow/tests/test_upflow_post_invoices_payload.py @@ -504,7 +504,7 @@ def convert_to_cent(euro_amount): reconcile_content, ) - expected_payload["externalId"] = str(partial_reconcile.id) + expected_payload["externalId"] = "partial-" + str(partial_reconcile.id) self.assertEqual(reconcile_content, expected_payload) def test_get_upflow_api_post_reconcile_refund_payload(self): @@ -542,7 +542,7 @@ def test_get_upflow_api_post_reconcile_refund_payload(self): ) expected = { - "externalId": str(full_reconcile.partial_reconcile_ids.id), + "externalId": "partial-" + str(full_reconcile.partial_reconcile_ids.id), "invoices": [], "payments": [], "creditNotes": [