odoo-addon-ebill-postfinance 16.0.1.0.0.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. odoo/addons/ebill_postfinance/README.rst +130 -0
  2. odoo/addons/ebill_postfinance/__init__.py +1 -0
  3. odoo/addons/ebill_postfinance/__manifest__.py +35 -0
  4. odoo/addons/ebill_postfinance/data/ir_cron.xml +14 -0
  5. odoo/addons/ebill_postfinance/data/mail_activity_type.xml +10 -0
  6. odoo/addons/ebill_postfinance/data/transmit.method.xml +10 -0
  7. odoo/addons/ebill_postfinance/i18n/ebill_postfinance.pot +533 -0
  8. odoo/addons/ebill_postfinance/messages/invoice-2003A.jinja +238 -0
  9. odoo/addons/ebill_postfinance/messages/invoice-yellowbill.jinja +227 -0
  10. odoo/addons/ebill_postfinance/messages/ybInvoice_V2.0.4.xsd +1395 -0
  11. odoo/addons/ebill_postfinance/models/__init__.py +5 -0
  12. odoo/addons/ebill_postfinance/models/account_move.py +140 -0
  13. odoo/addons/ebill_postfinance/models/ebill_payment_contract.py +73 -0
  14. odoo/addons/ebill_postfinance/models/ebill_postfinance_invoice_message.py +404 -0
  15. odoo/addons/ebill_postfinance/models/ebill_postfinance_service.py +154 -0
  16. odoo/addons/ebill_postfinance/models/sale_order.py +19 -0
  17. odoo/addons/ebill_postfinance/readme/CONFIGURE.rst +13 -0
  18. odoo/addons/ebill_postfinance/readme/CONTRIBUTORS.rst +1 -0
  19. odoo/addons/ebill_postfinance/readme/DESCRIPTION.rst +1 -0
  20. odoo/addons/ebill_postfinance/readme/INSTALL.rst +2 -0
  21. odoo/addons/ebill_postfinance/readme/ROADMAP.rst +10 -0
  22. odoo/addons/ebill_postfinance/readme/USAGE.rst +5 -0
  23. odoo/addons/ebill_postfinance/security/ir.model.access.csv +5 -0
  24. odoo/addons/ebill_postfinance/static/description/icon.png +0 -0
  25. odoo/addons/ebill_postfinance/static/description/index.html +470 -0
  26. odoo/addons/ebill_postfinance/tests/__init__.py +3 -0
  27. odoo/addons/ebill_postfinance/tests/common.py +194 -0
  28. odoo/addons/ebill_postfinance/tests/examples/credit_note_yb.xml +176 -0
  29. odoo/addons/ebill_postfinance/tests/examples/invoice_qr_yb.xml +182 -0
  30. odoo/addons/ebill_postfinance/tests/examples/yellowbill_qr_iban.xml +178 -0
  31. odoo/addons/ebill_postfinance/tests/fixtures/cassettes/test_ping_service.yaml +1057 -0
  32. odoo/addons/ebill_postfinance/tests/fixtures/cassettes/test_search_invoices.yaml +564 -0
  33. odoo/addons/ebill_postfinance/tests/fixtures/cassettes/test_upload_file.yaml +561 -0
  34. odoo/addons/ebill_postfinance/tests/test_ebill_postfinance.py +50 -0
  35. odoo/addons/ebill_postfinance/tests/test_ebill_postfinance_message_yb.py +65 -0
  36. odoo/addons/ebill_postfinance/tests/test_ebill_postfinance_message_yb_creditnote.py +67 -0
  37. odoo/addons/ebill_postfinance/views/ebill_payment_contract.xml +56 -0
  38. odoo/addons/ebill_postfinance/views/ebill_postfinance_invoice_message.xml +81 -0
  39. odoo/addons/ebill_postfinance/views/ebill_postfinance_service.xml +136 -0
  40. odoo/addons/ebill_postfinance/views/message_template.xml +8 -0
  41. odoo_addon_ebill_postfinance-16.0.1.0.0.3.dist-info/METADATA +149 -0
  42. odoo_addon_ebill_postfinance-16.0.1.0.0.3.dist-info/RECORD +44 -0
  43. odoo_addon_ebill_postfinance-16.0.1.0.0.3.dist-info/WHEEL +5 -0
  44. odoo_addon_ebill_postfinance-16.0.1.0.0.3.dist-info/top_level.txt +1 -0
@@ -0,0 +1,130 @@
1
+ =================
2
+ eBill Postfinance
3
+ =================
4
+
5
+ ..
6
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7
+ !! This file is generated by oca-gen-addon-readme !!
8
+ !! changes will be overwritten. !!
9
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
+ !! source digest: sha256:8fe54c201370aabd37f966becd9bc102925267307e434f56a4c558a943f058ed
11
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
+
13
+ .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14
+ :target: https://odoo-community.org/page/development-status
15
+ :alt: Beta
16
+ .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17
+ :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18
+ :alt: License: AGPL-3
19
+ .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--switzerland-lightgray.png?logo=github
20
+ :target: https://github.com/OCA/l10n-switzerland/tree/16.0/ebill_postfinance
21
+ :alt: OCA/l10n-switzerland
22
+ .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23
+ :target: https://translation.odoo-community.org/projects/l10n-switzerland-16-0/l10n-switzerland-16-0-ebill_postfinance
24
+ :alt: Translate me on Weblate
25
+ .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-switzerland&target_branch=16.0
27
+ :alt: Try me on Runboat
28
+
29
+ |badge1| |badge2| |badge3| |badge4| |badge5|
30
+
31
+ This module implements the exchange of electronic invoices with the Postfinance web service.
32
+
33
+ **Table of contents**
34
+
35
+ .. contents::
36
+ :local:
37
+
38
+ Installation
39
+ ============
40
+
41
+ This module needs the Python library `ebilling_postfiance` which can be installed from Pypi.
42
+ More information can be found at `<repository https://github.com/camptocamp/ebilling-postfinance>`_.
43
+
44
+ Configuration
45
+ =============
46
+
47
+ Create a service
48
+ ================
49
+
50
+ First you need to be registred on 'Postfinance eBill service <https://www.postfinance.ch/en/business/products/accounts-receivable-solutions/e-bill-invoice-issuer.html>'
51
+ To create a service go to `Accounting - Configuration - Payments - Postfinance eBill Service`
52
+
53
+ Configure a customer and create his contract
54
+ ============================================
55
+
56
+ The contracts specific to Postfinance e-billing are located in `Accounting - Customers - eBill Postfinance Contract`
57
+ Create a contract for a customer with his PayerId and make sure that the contract is active by being in `Open` state with valid start/end dates.
58
+
59
+ Set `Customer Invoice Transmission Method` on the customer to Postfinance.
60
+
61
+ Usage
62
+ =====
63
+
64
+ To use this module, you need to:
65
+
66
+ #. Configure the service, customers and contracts as described in the CONFIGURATION section.
67
+ #. Create an invoice for a customer with an open Postfinance contract.
68
+ #. Validate the invoice, and click the Send eBill button.
69
+
70
+ Known issues / Roadmap
71
+ ======================
72
+
73
+ ToDo
74
+
75
+ * Add option to import the contract subscription (csv)
76
+ * Add the download of this csv from web service, but what is the endpoint ?
77
+
78
+
79
+ Nice to have
80
+
81
+ * Add a link to the failed job in the chatter message.
82
+ * Add an action on partner to create a ebilling contract.
83
+
84
+ Bug Tracker
85
+ ===========
86
+
87
+ Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-switzerland/issues>`_.
88
+ In case of trouble, please check there if your issue has already been reported.
89
+ If you spotted it first, help us to smash it by providing a detailed and welcomed
90
+ `feedback <https://github.com/OCA/l10n-switzerland/issues/new?body=module:%20ebill_postfinance%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
91
+
92
+ Do not contact contributors directly about support or help with technical issues.
93
+
94
+ Credits
95
+ =======
96
+
97
+ Authors
98
+ ~~~~~~~
99
+
100
+ * Camptocamp
101
+
102
+ Contributors
103
+ ~~~~~~~~~~~~
104
+
105
+ * Thierry Ducrest <thierry.ducrest@camptocamp.com>
106
+
107
+ Maintainers
108
+ ~~~~~~~~~~~
109
+
110
+ This module is maintained by the OCA.
111
+
112
+ .. image:: https://odoo-community.org/logo.png
113
+ :alt: Odoo Community Association
114
+ :target: https://odoo-community.org
115
+
116
+ OCA, or the Odoo Community Association, is a nonprofit organization whose
117
+ mission is to support the collaborative development of Odoo features and
118
+ promote its widespread use.
119
+
120
+ .. |maintainer-TDu| image:: https://github.com/TDu.png?size=40px
121
+ :target: https://github.com/TDu
122
+ :alt: TDu
123
+
124
+ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
125
+
126
+ |maintainer-TDu|
127
+
128
+ This module is part of the `OCA/l10n-switzerland <https://github.com/OCA/l10n-switzerland/tree/16.0/ebill_postfinance>`_ project on GitHub.
129
+
130
+ You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
@@ -0,0 +1 @@
1
+ from . import models
@@ -0,0 +1,35 @@
1
+ # Copyright 2022 Camptocamp SA
2
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3
+
4
+ {
5
+ "name": "eBill Postfinance",
6
+ "summary": """Postfinance eBill integration""",
7
+ "version": "16.0.1.0.0",
8
+ "license": "AGPL-3",
9
+ "author": "Camptocamp,Odoo Community Association (OCA)",
10
+ "maintainers": ["TDu"],
11
+ "website": "https://github.com/OCA/l10n-switzerland",
12
+ "depends": [
13
+ "account",
14
+ "account_invoice_export",
15
+ "base_ebill_payment_contract",
16
+ "l10n_ch",
17
+ "sale",
18
+ ],
19
+ "external_dependencies": {
20
+ "python": [
21
+ "zeep",
22
+ "ebilling_postfinance",
23
+ ]
24
+ },
25
+ "data": [
26
+ "data/ir_cron.xml",
27
+ "data/transmit.method.xml",
28
+ "data/mail_activity_type.xml",
29
+ "security/ir.model.access.csv",
30
+ "views/ebill_payment_contract.xml",
31
+ "views/message_template.xml",
32
+ "views/ebill_postfinance_service.xml",
33
+ "views/ebill_postfinance_invoice_message.xml",
34
+ ],
35
+ }
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <odoo noupdate="1">
3
+ <record model="ir.cron" id="cron_search_invoices">
4
+ <field name="name">eBill Postfinance - Check invoices state on server</field>
5
+ <field name="interval_number">1</field>
6
+ <field name="interval_type">hours</field>
7
+ <field name="numbercall">-1</field>
8
+ <field name="active" eval="True" />
9
+ <field name="doall" eval="False" />
10
+ <field name="model_id" ref="model_ebill_postfinance_service" />
11
+ <field name="state">code</field>
12
+ <field name="code">model.cron_update_invoices()</field>
13
+ </record>
14
+ </odoo>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <odoo noupdate="1">
3
+ <record id="mail_activity_ebill_postfinance_error" model="mail.activity.type">
4
+ <field name="name">eBill Postfinance Error</field>
5
+ <field name="icon">fa-warning</field>
6
+ <field name="delay_count">0</field>
7
+ <field name="sequence">99</field>
8
+ <field name="decoration_type">warning</field>
9
+ </record>
10
+ </odoo>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <odoo>
3
+ <record id="postfinance_transmit_method" model="transmit.method">
4
+ <field name="name">Postfinance</field>
5
+ <field name="code">postfinance</field>
6
+ <field name="customer_ok" eval="True" />
7
+ <field name="supplier_ok" eval="False" />
8
+ <field name="send_through_http" eval="True" />
9
+ </record>
10
+ </odoo>