From 8d220b159450844e28711f4f956c9e89266fa133 Mon Sep 17 00:00:00 2001 From: Thierry Ducrest Date: Mon, 17 Oct 2022 15:47:52 +0200 Subject: [PATCH 1/8] Add ebill_postfinance_stock Remove the dependency on stock in the `ebill_postfinance` module. And add a new module `ebill_postfinance_stock` that will integrate in the xml invoice informations related to the deliveries. This is for Odoo implementation that sell only services and have no stock to manage. And do not use the `stock` module. --- ebill_postfinance_stock/__init__.py | 1 + ebill_postfinance_stock/__manifest__.py | 17 ++ .../invoice-line-stock-yellowbill.jinja | 10 + ebill_postfinance_stock/models/__init__.py | 1 + .../ebill_postfinance_invoice_message.py | 24 +++ .../readme/CONTRIBUTORS.rst | 1 + .../readme/DESCRIPTION.rst | 1 + ebill_postfinance_stock/tests/__init__.py | 1 + .../tests/examples/invoice_qr_yb.xml | 192 ++++++++++++++++++ .../test_ebill_postfinance_message_yb.py | 60 ++++++ 10 files changed, 308 insertions(+) create mode 100644 ebill_postfinance_stock/__init__.py create mode 100644 ebill_postfinance_stock/__manifest__.py create mode 100644 ebill_postfinance_stock/messages/invoice-line-stock-yellowbill.jinja create mode 100644 ebill_postfinance_stock/models/__init__.py create mode 100644 ebill_postfinance_stock/models/ebill_postfinance_invoice_message.py create mode 100644 ebill_postfinance_stock/readme/CONTRIBUTORS.rst create mode 100644 ebill_postfinance_stock/readme/DESCRIPTION.rst create mode 100644 ebill_postfinance_stock/tests/__init__.py create mode 100644 ebill_postfinance_stock/tests/examples/invoice_qr_yb.xml create mode 100644 ebill_postfinance_stock/tests/test_ebill_postfinance_message_yb.py diff --git a/ebill_postfinance_stock/__init__.py b/ebill_postfinance_stock/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/ebill_postfinance_stock/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/ebill_postfinance_stock/__manifest__.py b/ebill_postfinance_stock/__manifest__.py new file mode 100644 index 000000000..fdea40247 --- /dev/null +++ b/ebill_postfinance_stock/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2022 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "eBill Postfinance Stock", + "summary": """Add stock integration to Postfinance eBill""", + "version": "14.0.1.0.0", + "license": "AGPL-3", + "author": "Camptocamp,Odoo Community Association (OCA)", + "maintainers": ["TDu"], + "website": "https://github.com/OCA/l10n-switzerland", + "depends": [ + "ebill_postfinance", + "sale_stock", + ], + "auto_install": True, +} diff --git a/ebill_postfinance_stock/messages/invoice-line-stock-yellowbill.jinja b/ebill_postfinance_stock/messages/invoice-line-stock-yellowbill.jinja new file mode 100644 index 000000000..521b51ec7 --- /dev/null +++ b/ebill_postfinance_stock/messages/invoice-line-stock-yellowbill.jinja @@ -0,0 +1,10 @@ +{% for picking in line.sale_line_ids.move_ids.mapped('picking_id') %} +{%- if picking.state != 'cancel' %} +{% set ref.position = ref.position + 1 %} + + {{ ref.position }} + DeliveryNoteNumber + {{ picking.name }} + +{%- endif %} +{% endfor %} diff --git a/ebill_postfinance_stock/models/__init__.py b/ebill_postfinance_stock/models/__init__.py new file mode 100644 index 000000000..6c45f0783 --- /dev/null +++ b/ebill_postfinance_stock/models/__init__.py @@ -0,0 +1 @@ +from . import ebill_postfinance_invoice_message diff --git a/ebill_postfinance_stock/models/ebill_postfinance_invoice_message.py b/ebill_postfinance_stock/models/ebill_postfinance_invoice_message.py new file mode 100644 index 000000000..89bda52eb --- /dev/null +++ b/ebill_postfinance_stock/models/ebill_postfinance_invoice_message.py @@ -0,0 +1,24 @@ +# Copyright 2022 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) + +import os + +from odoo import models +from odoo.modules.module import get_module_root + +MODULE_PATH = get_module_root(os.path.dirname(__file__)) +INVOICE_LINE_STOCK_TEMPLATE = "invoice-line-stock-yellowbill.jinja" +TEMPLATE_DIR = [MODULE_PATH + "/messages"] + + +class EbillPostfinanceInvoiceMessage(models.Model): + _inherit = "ebill.postfinance.invoice.message" + + def _get_jinja_env(self, template_dir): + template_dir += TEMPLATE_DIR + return super()._get_jinja_env(template_dir) + + def _get_payload_params_yb(self): + params = super()._get_payload_params_yb() + params["invoice_line_stock_template"] = INVOICE_LINE_STOCK_TEMPLATE + return params diff --git a/ebill_postfinance_stock/readme/CONTRIBUTORS.rst b/ebill_postfinance_stock/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..0dd376fae --- /dev/null +++ b/ebill_postfinance_stock/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Thierry Ducrest diff --git a/ebill_postfinance_stock/readme/DESCRIPTION.rst b/ebill_postfinance_stock/readme/DESCRIPTION.rst new file mode 100644 index 000000000..4789bf4f1 --- /dev/null +++ b/ebill_postfinance_stock/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module adds some information related to delivery in the eBill Postfinance integration. diff --git a/ebill_postfinance_stock/tests/__init__.py b/ebill_postfinance_stock/tests/__init__.py new file mode 100644 index 000000000..d5235b1f0 --- /dev/null +++ b/ebill_postfinance_stock/tests/__init__.py @@ -0,0 +1 @@ +from . import test_ebill_postfinance_message_yb diff --git a/ebill_postfinance_stock/tests/examples/invoice_qr_yb.xml b/ebill_postfinance_stock/tests/examples/invoice_qr_yb.xml new file mode 100644 index 000000000..cb9bb2e45 --- /dev/null +++ b/ebill_postfinance_stock/tests/examples/invoice_qr_yb.xml @@ -0,0 +1,192 @@ + + +
+ Camptocamp SA + IPECeBILLServer + CreateybInvoice + 1 + 2.0 + 0 + Odoo + 14.0 +
+ + + 41101000001021209 + 41010198248040391 + 2019-06-21 + $TRANSACTION_ID + PDFAppendix + + + +
+ BILL + INV_TEST_01 + 2019-06-21 + + VAT + +
+ Camptocamp SA + StreetOne + 1015 + Lausanne + CH + info@camptocamp.com +
+ CHE012345678 +
+
+ + + $CUSTOMER_ID +
+ Test RAD Customer XML + Teststrasse 100 + This is a very long street name that should be sna + 1700 + Fribourg + CH +
+ +
+
+ +
+ Test RAD Customer XML + 1700 + Fribourg + CH + +
+
+ + 2019-06-21 + 2019-06-21 + + CHF + + + 1 + OrderReference + CustomerRef + + 2019-06-01 + + en + + 2019-07-01 + IBAN + Yes + + 777 + Reserve + CH2130808001234567827 + 210000000003139471430009017 + + + +
+ + + NORMAL + 1 + Product Q & A + 370003021 + 4.0 + Units + 1 + + + 7.7 + 37.88 + 492.0 + 529.88 + + 37.88 + + 529.88 + 492.0 + + 2 + OrderNumberBySupplier + Order123 + + + 3 + OrderNumberByBuyer + CustomerRef + + + 4 + DeliveryNoteNumber + Picking Name + + + + NORMAL + 2 + Product With a Very Long Name That Need To Be Truncated + 370003022 + 1.0 + Units + 1 + + + 7.7 + 0.0 + 0.0 + 0.0 + + 0.0 + + 0.0 + 0.0 + + 5 + OrderNumberBySupplier + Order123 + + + 6 + OrderNumberByBuyer + CustomerRef + + + 7 + DeliveryNoteNumber + Picking Name + + + + NORMAL + 3 + Phone support + 4.0 + PCE + 1 + 0.0 + 0.0 + + + + + + 7.7 + 37.88 + 492.0 + 529.88 + + 37.88 + + 492.0 + 529.88 + + 529.88 + +
+ + + +
diff --git a/ebill_postfinance_stock/tests/test_ebill_postfinance_message_yb.py b/ebill_postfinance_stock/tests/test_ebill_postfinance_message_yb.py new file mode 100644 index 000000000..30d9b5fdf --- /dev/null +++ b/ebill_postfinance_stock/tests/test_ebill_postfinance_message_yb.py @@ -0,0 +1,60 @@ +# Copyright 2022 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) + +from string import Template + +from freezegun import freeze_time +from lxml import etree as ET + +from odoo.modules.module import get_module_path +from odoo.tools import file_open + +from odoo.addons.ebill_postfinance.tests.common import CommonCase + + +@freeze_time("2019-06-21 09:06:00") +class TestEbillPostfinanceMessageYB(CommonCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.schema_file = ( + get_module_path("ebill_postfinance") + "/messages/ybInvoice_V2.0.4.xsd" + ) + cls.pickings = cls.sale.order_line.move_ids.mapped("picking_id") + cls.pickings[0].name = "Picking Name" + for line in cls.pickings.move_lines.move_line_ids: + line.qty_done = line.product_qty + cls.pickings._action_done() + + def test_invoice_qr(self): + """Check XML payload genetated for an invoice.""" + self.invoice.name = "INV_TEST_01" + self.invoice.invoice_date_due = "2019-07-01" + message = self.invoice.create_postfinance_ebill() + message.set_transaction_id() + message.payload = message._generate_payload_yb() + # Validate the xml generated on top of the xsd schema + node = ET.fromstring(message.payload.encode("utf-8")) + self.assertXmlValidXSchema(node, xschema=None, filename=self.schema_file) + # Remove the PDF file data from the XML to ease diff check + lines = message.payload.splitlines() + for pos, line in enumerate(lines): + if line.find("MimeType") != -1: + lines.pop(pos) + break + payload = "\n".join(lines).encode("utf8") + # Prepare the XML file that is expected + expected_tmpl = Template( + file_open("ebill_postfinance_stock/tests/examples/invoice_qr_yb.xml").read() + ) + expected = expected_tmpl.substitute( + TRANSACTION_ID=message.transaction_id, CUSTOMER_ID=self.customer.id + ).encode("utf8") + # Remove the comments in the expected xml + expected_nocomment = [ + line + for line in expected.split(b"\n") + if not line.lstrip().startswith(b" +

Beta License: AGPL-3 OCA/l10n-switzerland Translate me on Weblate Try me on Runboat

+

This module adds some information related to delivery in the eBill Postfinance integration.

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Camptocamp
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

Current maintainer:

+

TDu

+

This module is part of the OCA/l10n-switzerland project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+ + + From e7766ffa23709b084fe937de22182f1572c935f5 Mon Sep 17 00:00:00 2001 From: Thierry Ducrest Date: Wed, 13 Dec 2023 16:55:10 +0100 Subject: [PATCH 5/8] ebill_postfinance_stock: migrate to v16 --- ebill_postfinance_stock/README.rst | 2 +- ebill_postfinance_stock/__manifest__.py | 2 +- ebill_postfinance_stock/static/description/index.html | 2 +- .../tests/test_ebill_postfinance_message_yb.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ebill_postfinance_stock/README.rst b/ebill_postfinance_stock/README.rst index bc9fb22d3..c28c170aa 100644 --- a/ebill_postfinance_stock/README.rst +++ b/ebill_postfinance_stock/README.rst @@ -7,7 +7,7 @@ eBill Postfinance Stock !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:9b60c00dbeaf81912bbe2a0f425b8abe5e812b6fd95bd7f01512bfc84289fae8 + !! source digest: sha256:d560906a22ebe7ea9c8860c9debf497de39154cb16cf9b93cdf7123f96203532 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/ebill_postfinance_stock/__manifest__.py b/ebill_postfinance_stock/__manifest__.py index fdea40247..5d826a902 100644 --- a/ebill_postfinance_stock/__manifest__.py +++ b/ebill_postfinance_stock/__manifest__.py @@ -4,7 +4,7 @@ { "name": "eBill Postfinance Stock", "summary": """Add stock integration to Postfinance eBill""", - "version": "14.0.1.0.0", + "version": "16.0.1.0.0", "license": "AGPL-3", "author": "Camptocamp,Odoo Community Association (OCA)", "maintainers": ["TDu"], diff --git a/ebill_postfinance_stock/static/description/index.html b/ebill_postfinance_stock/static/description/index.html index d8d8f1386..ace8fe588 100644 --- a/ebill_postfinance_stock/static/description/index.html +++ b/ebill_postfinance_stock/static/description/index.html @@ -367,7 +367,7 @@

eBill Postfinance Stock

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:9b60c00dbeaf81912bbe2a0f425b8abe5e812b6fd95bd7f01512bfc84289fae8 +!! source digest: sha256:d560906a22ebe7ea9c8860c9debf497de39154cb16cf9b93cdf7123f96203532 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-switzerland Translate me on Weblate Try me on Runboat

This module adds some information related to delivery in the eBill Postfinance integration.

diff --git a/ebill_postfinance_stock/tests/test_ebill_postfinance_message_yb.py b/ebill_postfinance_stock/tests/test_ebill_postfinance_message_yb.py index 30d9b5fdf..3162f32f6 100644 --- a/ebill_postfinance_stock/tests/test_ebill_postfinance_message_yb.py +++ b/ebill_postfinance_stock/tests/test_ebill_postfinance_message_yb.py @@ -22,8 +22,8 @@ def setUpClass(cls): ) cls.pickings = cls.sale.order_line.move_ids.mapped("picking_id") cls.pickings[0].name = "Picking Name" - for line in cls.pickings.move_lines.move_line_ids: - line.qty_done = line.product_qty + for line in cls.pickings.move_ids.move_line_ids: + line.qty_done = line.reserved_qty cls.pickings._action_done() def test_invoice_qr(self): From d4b84cbb8091a32b5b3a6303a813869bf3173e61 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Fri, 12 Jul 2024 10:46:22 +0000 Subject: [PATCH 6/8] [UPD] Update ebill_postfinance_stock.pot --- .../i18n/ebill_postfinance_stock.pot | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/ebill_postfinance_stock/i18n/ebill_postfinance_stock.pot b/ebill_postfinance_stock/i18n/ebill_postfinance_stock.pot index df4ea79cb..793a9b642 100644 --- a/ebill_postfinance_stock/i18n/ebill_postfinance_stock.pot +++ b/ebill_postfinance_stock/i18n/ebill_postfinance_stock.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" +"Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -13,21 +13,6 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -#. module: ebill_postfinance_stock -#: model:ir.model.fields,field_description:ebill_postfinance_stock.field_ebill_postfinance_invoice_message__display_name -msgid "Display Name" -msgstr "" - -#. module: ebill_postfinance_stock -#: model:ir.model.fields,field_description:ebill_postfinance_stock.field_ebill_postfinance_invoice_message__id -msgid "ID" -msgstr "" - -#. module: ebill_postfinance_stock -#: model:ir.model.fields,field_description:ebill_postfinance_stock.field_ebill_postfinance_invoice_message____last_update -msgid "Last Modified on" -msgstr "" - #. module: ebill_postfinance_stock #: model:ir.model,name:ebill_postfinance_stock.model_ebill_postfinance_invoice_message msgid "Postfinance message send to service" From b92ae9fa915e8d53fcebd2750957dd5e3e0c08e7 Mon Sep 17 00:00:00 2001 From: Thierry Ducrest Date: Fri, 20 Sep 2024 10:28:53 +0200 Subject: [PATCH 7/8] [IMP] ebill_postfinance_stock: black, isort, prettier --- ebill_postfinance_stock/README.rst | 21 ++++++++++--------- ebill_postfinance_stock/pyproject.toml | 3 +++ .../readme/CONTRIBUTORS.md | 1 + .../readme/CONTRIBUTORS.rst | 1 - .../{DESCRIPTION.rst => DESCRIPTION.md} | 3 ++- .../static/description/index.html | 21 +++++++++++-------- .../tests/examples/invoice_qr_yb.xml | 2 +- 7 files changed, 30 insertions(+), 22 deletions(-) create mode 100644 ebill_postfinance_stock/pyproject.toml create mode 100644 ebill_postfinance_stock/readme/CONTRIBUTORS.md delete mode 100644 ebill_postfinance_stock/readme/CONTRIBUTORS.rst rename ebill_postfinance_stock/readme/{DESCRIPTION.rst => DESCRIPTION.md} (69%) diff --git a/ebill_postfinance_stock/README.rst b/ebill_postfinance_stock/README.rst index c28c170aa..28cae97a0 100644 --- a/ebill_postfinance_stock/README.rst +++ b/ebill_postfinance_stock/README.rst @@ -17,18 +17,19 @@ eBill Postfinance Stock :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--switzerland-lightgray.png?logo=github - :target: https://github.com/OCA/l10n-switzerland/tree/16.0/ebill_postfinance_stock + :target: https://github.com/OCA/l10n-switzerland/tree/17.0/ebill_postfinance_stock :alt: OCA/l10n-switzerland .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/l10n-switzerland-16-0/l10n-switzerland-16-0-ebill_postfinance_stock + :target: https://translation.odoo-community.org/projects/l10n-switzerland-17-0/l10n-switzerland-17-0-ebill_postfinance_stock :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-switzerland&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-switzerland&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| -This module adds some information related to delivery in the eBill Postfinance integration. +This module adds some information related to delivery in the eBill +Postfinance integration. **Table of contents** @@ -41,7 +42,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -49,17 +50,17 @@ Credits ======= Authors -~~~~~~~ +------- * Camptocamp Contributors -~~~~~~~~~~~~ +------------ -* Thierry Ducrest +- Thierry Ducrest Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -79,6 +80,6 @@ Current `maintainer `__: |maintainer-TDu| -This module is part of the `OCA/l10n-switzerland `_ project on GitHub. +This module is part of the `OCA/l10n-switzerland `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/ebill_postfinance_stock/pyproject.toml b/ebill_postfinance_stock/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/ebill_postfinance_stock/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/ebill_postfinance_stock/readme/CONTRIBUTORS.md b/ebill_postfinance_stock/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..62ceaf42f --- /dev/null +++ b/ebill_postfinance_stock/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- Thierry Ducrest \<\> diff --git a/ebill_postfinance_stock/readme/CONTRIBUTORS.rst b/ebill_postfinance_stock/readme/CONTRIBUTORS.rst deleted file mode 100644 index 0dd376fae..000000000 --- a/ebill_postfinance_stock/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1 +0,0 @@ -* Thierry Ducrest diff --git a/ebill_postfinance_stock/readme/DESCRIPTION.rst b/ebill_postfinance_stock/readme/DESCRIPTION.md similarity index 69% rename from ebill_postfinance_stock/readme/DESCRIPTION.rst rename to ebill_postfinance_stock/readme/DESCRIPTION.md index 4789bf4f1..f32add70e 100644 --- a/ebill_postfinance_stock/readme/DESCRIPTION.rst +++ b/ebill_postfinance_stock/readme/DESCRIPTION.md @@ -1 +1,2 @@ -This module adds some information related to delivery in the eBill Postfinance integration. +This module adds some information related to delivery in the eBill +Postfinance integration. diff --git a/ebill_postfinance_stock/static/description/index.html b/ebill_postfinance_stock/static/description/index.html index ace8fe588..7044c6e6e 100644 --- a/ebill_postfinance_stock/static/description/index.html +++ b/ebill_postfinance_stock/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -369,8 +369,9 @@

eBill Postfinance Stock

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:d560906a22ebe7ea9c8860c9debf497de39154cb16cf9b93cdf7123f96203532 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/l10n-switzerland Translate me on Weblate Try me on Runboat

-

This module adds some information related to delivery in the eBill Postfinance integration.

+

Beta License: AGPL-3 OCA/l10n-switzerland Translate me on Weblate Try me on Runboat

+

This module adds some information related to delivery in the eBill +Postfinance integration.

Table of contents

    @@ -388,7 +389,7 @@

    Bug Tracker

    Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -feedback.

    +feedback.

    Do not contact contributors directly about support or help with technical issues.

@@ -408,13 +409,15 @@

Contributors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

TDu

-

This module is part of the OCA/l10n-switzerland project on GitHub.

+

This module is part of the OCA/l10n-switzerland project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/ebill_postfinance_stock/tests/examples/invoice_qr_yb.xml b/ebill_postfinance_stock/tests/examples/invoice_qr_yb.xml index cb9bb2e45..8449f8b3c 100644 --- a/ebill_postfinance_stock/tests/examples/invoice_qr_yb.xml +++ b/ebill_postfinance_stock/tests/examples/invoice_qr_yb.xml @@ -1,5 +1,5 @@ - +
Camptocamp SA IPECeBILLServer From 8a4c9b064ca2daf3a45a20484e53996abc76f165 Mon Sep 17 00:00:00 2001 From: Thierry Ducrest Date: Fri, 20 Sep 2024 13:46:52 +0200 Subject: [PATCH 8/8] [MIG] ebill_postfinance_stock: Migration to 17.0 --- ebill_postfinance_stock/__manifest__.py | 2 +- .../tests/test_ebill_postfinance_message_yb.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ebill_postfinance_stock/__manifest__.py b/ebill_postfinance_stock/__manifest__.py index 5d826a902..2f270cceb 100644 --- a/ebill_postfinance_stock/__manifest__.py +++ b/ebill_postfinance_stock/__manifest__.py @@ -4,7 +4,7 @@ { "name": "eBill Postfinance Stock", "summary": """Add stock integration to Postfinance eBill""", - "version": "16.0.1.0.0", + "version": "17.0.1.0.0", "license": "AGPL-3", "author": "Camptocamp,Odoo Community Association (OCA)", "maintainers": ["TDu"], diff --git a/ebill_postfinance_stock/tests/test_ebill_postfinance_message_yb.py b/ebill_postfinance_stock/tests/test_ebill_postfinance_message_yb.py index 3162f32f6..32aeea517 100644 --- a/ebill_postfinance_stock/tests/test_ebill_postfinance_message_yb.py +++ b/ebill_postfinance_stock/tests/test_ebill_postfinance_message_yb.py @@ -23,7 +23,7 @@ def setUpClass(cls): cls.pickings = cls.sale.order_line.move_ids.mapped("picking_id") cls.pickings[0].name = "Picking Name" for line in cls.pickings.move_ids.move_line_ids: - line.qty_done = line.reserved_qty + line.picked = True cls.pickings._action_done() def test_invoice_qr(self):