odoo-addon-ebill-postfinance 16.0.1.0.0.3__py3-none-any.whl → 17.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 (31) hide show
  1. odoo/addons/ebill_postfinance/README.rst +36 -28
  2. odoo/addons/ebill_postfinance/__manifest__.py +1 -1
  3. odoo/addons/ebill_postfinance/i18n/ebill_postfinance.pot +1 -13
  4. odoo/addons/ebill_postfinance/models/account_move.py +1 -2
  5. odoo/addons/ebill_postfinance/models/ebill_payment_contract.py +3 -2
  6. odoo/addons/ebill_postfinance/models/ebill_postfinance_invoice_message.py +16 -56
  7. odoo/addons/ebill_postfinance/models/ebill_postfinance_service.py +1 -1
  8. odoo/addons/ebill_postfinance/models/sale_order.py +0 -1
  9. odoo/addons/ebill_postfinance/readme/CONFIGURE.md +15 -0
  10. odoo/addons/ebill_postfinance/readme/CONTRIBUTORS.md +1 -0
  11. odoo/addons/ebill_postfinance/readme/{DESCRIPTION.rst → DESCRIPTION.md} +2 -1
  12. odoo/addons/ebill_postfinance/readme/INSTALL.md +3 -0
  13. odoo/addons/ebill_postfinance/readme/ROADMAP.md +10 -0
  14. odoo/addons/ebill_postfinance/readme/USAGE.md +6 -0
  15. odoo/addons/ebill_postfinance/static/description/index.html +36 -23
  16. odoo/addons/ebill_postfinance/tests/common.py +9 -2
  17. odoo/addons/ebill_postfinance/tests/examples/invoice_qr_yb.xml +1 -1
  18. odoo/addons/ebill_postfinance/tests/test_ebill_postfinance.py +0 -1
  19. odoo/addons/ebill_postfinance/tests/test_ebill_postfinance_message_yb.py +1 -1
  20. odoo/addons/ebill_postfinance/views/ebill_payment_contract.xml +2 -2
  21. odoo/addons/ebill_postfinance/views/ebill_postfinance_service.xml +1 -1
  22. {odoo_addon_ebill_postfinance-16.0.1.0.0.3.dist-info → odoo_addon_ebill_postfinance-17.0.1.0.0.3.dist-info}/METADATA +45 -37
  23. {odoo_addon_ebill_postfinance-16.0.1.0.0.3.dist-info → odoo_addon_ebill_postfinance-17.0.1.0.0.3.dist-info}/RECORD +25 -25
  24. {odoo_addon_ebill_postfinance-16.0.1.0.0.3.dist-info → odoo_addon_ebill_postfinance-17.0.1.0.0.3.dist-info}/WHEEL +1 -1
  25. odoo_addon_ebill_postfinance-17.0.1.0.0.3.dist-info/top_level.txt +1 -0
  26. odoo/addons/ebill_postfinance/readme/CONFIGURE.rst +0 -13
  27. odoo/addons/ebill_postfinance/readme/CONTRIBUTORS.rst +0 -1
  28. odoo/addons/ebill_postfinance/readme/INSTALL.rst +0 -2
  29. odoo/addons/ebill_postfinance/readme/ROADMAP.rst +0 -10
  30. odoo/addons/ebill_postfinance/readme/USAGE.rst +0 -5
  31. odoo_addon_ebill_postfinance-16.0.1.0.0.3.dist-info/top_level.txt +0 -1
@@ -7,7 +7,7 @@ eBill Postfinance
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:8fe54c201370aabd37f966becd9bc102925267307e434f56a4c558a943f058ed
10
+ !! source digest: sha256:6f6e6ca32f9808a18ea3fad1447dd4f32abbd1d4f6ee1ad8944f1e66b39f9808
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -17,18 +17,19 @@ eBill Postfinance
17
17
  :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18
18
  :alt: License: AGPL-3
19
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
20
+ :target: https://github.com/OCA/l10n-switzerland/tree/17.0/ebill_postfinance
21
21
  :alt: OCA/l10n-switzerland
22
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
23
+ :target: https://translation.odoo-community.org/projects/l10n-switzerland-17-0/l10n-switzerland-17-0-ebill_postfinance
24
24
  :alt: Translate me on Weblate
25
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
26
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-switzerland&target_branch=17.0
27
27
  :alt: Try me on Runboat
28
28
 
29
29
  |badge1| |badge2| |badge3| |badge4| |badge5|
30
30
 
31
- This module implements the exchange of electronic invoices with the Postfinance web service.
31
+ This module implements the exchange of electronic invoices with the
32
+ Postfinance web service.
32
33
 
33
34
  **Table of contents**
34
35
 
@@ -38,48 +39,55 @@ This module implements the exchange of electronic invoices with the Postfinance
38
39
  Installation
39
40
  ============
40
41
 
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>`_.
42
+ This module needs the Python library ebilling_postfiance which can be
43
+ installed from Pypi. More information can be found at
44
+ `repository <repository%20https://github.com/camptocamp/ebilling-postfinance>`__
45
+ https://github.com/camptocamp/ebilling-postfinance.
43
46
 
44
47
  Configuration
45
48
  =============
46
49
 
47
50
  Create a service
48
- ================
51
+ ----------------
49
52
 
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`
53
+ First you need to be registred on 'Postfinance eBill service
54
+ <https://www.postfinance.ch/en/business/products/accounts-receivable-solutions/e-bill-invoice-issuer.html>'
55
+ To create a service go to Accounting - Configuration - Payments -
56
+ Postfinance eBill Service
52
57
 
53
58
  Configure a customer and create his contract
54
- ============================================
59
+ --------------------------------------------
55
60
 
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.
61
+ The contracts specific to Postfinance e-billing are located in
62
+ Accounting - Customers - eBill Postfinance Contract Create a contract
63
+ for a customer with his PayerId and make sure that the contract is
64
+ active by being in Open state with valid start/end dates.
58
65
 
59
- Set `Customer Invoice Transmission Method` on the customer to Postfinance.
66
+ Set Customer Invoice Transmission Method on the customer to Postfinance.
60
67
 
61
68
  Usage
62
69
  =====
63
70
 
64
71
  To use this module, you need to:
65
72
 
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.
73
+ 1. Configure the service, customers and contracts as described in the
74
+ CONFIGURATION section.
75
+ 2. Create an invoice for a customer with an open Postfinance contract.
76
+ 3. Validate the invoice, and click the Send eBill button.
69
77
 
70
78
  Known issues / Roadmap
71
79
  ======================
72
80
 
73
81
  ToDo
74
82
 
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
-
83
+ - Add option to import the contract subscription (csv)
84
+ - Add the download of this csv from web service, but what is the
85
+ endpoint ?
78
86
 
79
87
  Nice to have
80
88
 
81
- * Add a link to the failed job in the chatter message.
82
- * Add an action on partner to create a ebilling contract.
89
+ - Add a link to the failed job in the chatter message.
90
+ - Add an action on partner to create a ebilling contract.
83
91
 
84
92
  Bug Tracker
85
93
  ===========
@@ -87,7 +95,7 @@ Bug Tracker
87
95
  Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-switzerland/issues>`_.
88
96
  In case of trouble, please check there if your issue has already been reported.
89
97
  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**>`_.
98
+ `feedback <https://github.com/OCA/l10n-switzerland/issues/new?body=module:%20ebill_postfinance%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
91
99
 
92
100
  Do not contact contributors directly about support or help with technical issues.
93
101
 
@@ -95,17 +103,17 @@ Credits
95
103
  =======
96
104
 
97
105
  Authors
98
- ~~~~~~~
106
+ -------
99
107
 
100
108
  * Camptocamp
101
109
 
102
110
  Contributors
103
- ~~~~~~~~~~~~
111
+ ------------
104
112
 
105
- * Thierry Ducrest <thierry.ducrest@camptocamp.com>
113
+ - Thierry Ducrest <thierry.ducrest@camptocamp.com>
106
114
 
107
115
  Maintainers
108
- ~~~~~~~~~~~
116
+ -----------
109
117
 
110
118
  This module is maintained by the OCA.
111
119
 
@@ -125,6 +133,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
125
133
 
126
134
  |maintainer-TDu|
127
135
 
128
- This module is part of the `OCA/l10n-switzerland <https://github.com/OCA/l10n-switzerland/tree/16.0/ebill_postfinance>`_ project on GitHub.
136
+ This module is part of the `OCA/l10n-switzerland <https://github.com/OCA/l10n-switzerland/tree/17.0/ebill_postfinance>`_ project on GitHub.
129
137
 
130
138
  You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
@@ -4,7 +4,7 @@
4
4
  {
5
5
  "name": "eBill Postfinance",
6
6
  "summary": """Postfinance eBill integration""",
7
- "version": "16.0.1.0.0",
7
+ "version": "17.0.1.0.0",
8
8
  "license": "AGPL-3",
9
9
  "author": "Camptocamp,Odoo Community Association (OCA)",
10
10
  "maintainers": ["TDu"],
@@ -4,7 +4,7 @@
4
4
  #
5
5
  msgid ""
6
6
  msgstr ""
7
- "Project-Id-Version: Odoo Server 16.0\n"
7
+ "Project-Id-Version: Odoo Server 17.0\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
9
  "Last-Translator: \n"
10
10
  "Language-Team: \n"
@@ -167,11 +167,6 @@ msgstr ""
167
167
  msgid "ID"
168
168
  msgstr ""
169
169
 
170
- #. module: ebill_postfinance
171
- #: model:ir.model.fields.selection,name:ebill_postfinance.selection__ebill_payment_contract__payment_type__isr
172
- msgid "ISR"
173
- msgstr ""
174
-
175
170
  #. module: ebill_postfinance
176
171
  #: model_terms:ir.ui.view,arch_db:ebill_postfinance.ebill_postfinance_invoice_message_search_view
177
172
  msgid "In Error"
@@ -244,12 +239,6 @@ msgstr ""
244
239
  msgid "Journal Entry"
245
240
  msgstr ""
246
241
 
247
- #. module: ebill_postfinance
248
- #: model:ir.model.fields,field_description:ebill_postfinance.field_ebill_postfinance_invoice_message____last_update
249
- #: model:ir.model.fields,field_description:ebill_postfinance.field_ebill_postfinance_service____last_update
250
- msgid "Last Modified on"
251
- msgstr ""
252
-
253
242
  #. module: ebill_postfinance
254
243
  #: model:ir.model.fields,field_description:ebill_postfinance.field_ebill_postfinance_invoice_message__write_uid
255
244
  #: model:ir.model.fields,field_description:ebill_postfinance.field_ebill_postfinance_service__write_uid
@@ -523,7 +512,6 @@ msgstr ""
523
512
 
524
513
  #. module: ebill_postfinance
525
514
  #: model:ir.actions.server,name:ebill_postfinance.cron_search_invoices_ir_actions_server
526
- #: model:ir.cron,cron_name:ebill_postfinance.cron_search_invoices
527
515
  msgid "eBill Postfinance - Check invoices state on server"
528
516
  msgstr ""
529
517
 
@@ -13,7 +13,6 @@ _logger = logging.getLogger(__name__)
13
13
 
14
14
 
15
15
  class AccountMove(models.Model):
16
-
17
16
  _inherit = "account.move"
18
17
 
19
18
  @api.onchange("transmit_method_id")
@@ -40,7 +39,7 @@ class AccountMove(models.Model):
40
39
  raise UserError(_("Error generating postfinance eBill"))
41
40
  message.send_to_postfinance()
42
41
  self.invoice_exported = True
43
- return "Postfinance invoice generated and in state {}".format(message.state)
42
+ return f"Postfinance invoice generated and in state {message.state}"
44
43
 
45
44
  def create_postfinance_ebill(self):
46
45
  """Generate the message record for an invoice."""
@@ -23,7 +23,7 @@ class EbillPaymentContract(models.Model):
23
23
  compute="_compute_is_postfinance_method_on_partner"
24
24
  )
25
25
  payment_type = fields.Selection(
26
- selection=[("qr", "QR"), ("isr", "ISR")],
26
+ selection=[("qr", "QR")],
27
27
  string="Payment method",
28
28
  default="qr",
29
29
  help="Payment type to use for the invoices sent,"
@@ -60,7 +60,8 @@ class EbillPaymentContract(models.Model):
60
60
  if not contract.postfinance_billerid:
61
61
  raise ValidationError(
62
62
  _(
63
- "The Postfinacnce Account ID is required for a Postfinance contract."
63
+ "The Postfinacnce Account ID is required for a "
64
+ "Postfinance contract."
64
65
  )
65
66
  )
66
67
 
@@ -201,21 +201,11 @@ class EbillPostfinanceInvoiceMessage(models.Model):
201
201
 
202
202
  def _get_payload_params(self):
203
203
  bank_account = ""
204
- if self.payment_type == "iban":
205
- bank_account = sanitize_account_number(
206
- self.invoice_id.partner_bank_id.l10n_ch_qr_iban
207
- or self.invoice_id.partner_bank_id.acc_number
208
- )
209
- else:
210
- bank_account = self.invoice_id.partner_bank_id.l10n_ch_isr_subscription_chf
211
- if bank_account:
212
- account_parts = bank_account.split("-")
213
- bank_account = (
214
- account_parts[0] + account_parts[1].rjust(6, "0") + account_parts[2]
215
- )
216
- else:
217
- bank_account = ""
218
-
204
+ bank_account = sanitize_account_number(
205
+ self.invoice_id.partner_bank_id.l10n_ch_qr_iban
206
+ or self.invoice_id.partner_bank_id.acc_number
207
+ or ""
208
+ )
219
209
  params = {
220
210
  "client_pid": self.service_id.biller_id,
221
211
  "invoice": self.invoice_id,
@@ -248,39 +238,18 @@ class EbillPostfinanceInvoiceMessage(models.Model):
248
238
  )
249
239
  params["amount_by_group"] = amount_by_group
250
240
  # Get the invoice due date
251
- date_due = None
252
- if self.invoice_id.invoice_payment_term_id:
253
- terms = self.invoice_id.invoice_payment_term_id.compute(
254
- self.invoice_id.amount_total
255
- )
256
- if terms:
257
- # Returns all payment and their date like [('2020-12-07', 430.37), ...]
258
- # Get the last payment date in the format "202021207"
259
- date_due = terms[-1][0].replace("-", "")
260
- if not date_due:
261
- date_due = self.format_date(
262
- self.invoice_id.invoice_date_due or self.invoice_id.invoice_date
263
- )
241
+ date_due = self.format_date(
242
+ self.invoice_id.invoice_date_due or self.invoice_id.invoice_date
243
+ )
264
244
  params["date_due"] = date_due
265
245
  return params
266
246
 
267
247
  def _get_payload_params_yb(self):
268
- bank_account = ""
269
- if self.payment_type == "iban":
270
- bank_account = sanitize_account_number(
271
- self.invoice_id.partner_bank_id.l10n_ch_qr_iban
272
- or self.invoice_id.partner_bank_id.acc_number
273
- )
274
- else:
275
- bank_account = self.invoice_id.partner_bank_id.l10n_ch_isr_subscription_chf
276
- if bank_account:
277
- account_parts = bank_account.split("-")
278
- bank_account = (
279
- account_parts[0] + account_parts[1].rjust(6, "0") + account_parts[2]
280
- )
281
- else:
282
- bank_account = ""
283
-
248
+ bank_account = sanitize_account_number(
249
+ self.invoice_id.partner_bank_id.l10n_ch_qr_iban
250
+ or self.invoice_id.partner_bank_id.acc_number
251
+ or ""
252
+ )
284
253
  delivery = (
285
254
  self.invoice_id.partner_shipping_id
286
255
  if self.invoice_id.partner_shipping_id != self.invoice_id.partner_id
@@ -324,18 +293,9 @@ class EbillPostfinanceInvoiceMessage(models.Model):
324
293
  )
325
294
  params["amount_by_group"] = amount_by_group
326
295
  # Get the invoice due date
327
- date_due = None
328
- if self.invoice_id.invoice_payment_term_id:
329
- terms = self.invoice_id.invoice_payment_term_id.compute(
330
- self.invoice_id.amount_total
331
- )
332
- if terms:
333
- # Get the last payment date
334
- date_due = terms[-1][0]
335
- if not date_due:
336
- date_due = self.format_date_yb(
337
- self.invoice_id.invoice_date_due or self.invoice_id.invoice_date
338
- )
296
+ date_due = self.format_date_yb(
297
+ self.invoice_id.invoice_date_due or self.invoice_id.invoice_date
298
+ )
339
299
  params["date_due"] = date_due
340
300
  return params
341
301
 
@@ -73,7 +73,7 @@ class EbillPostfinanceService(models.Model):
73
73
  msg = ["Test connection to service"]
74
74
  res = self.ping_service()
75
75
  if res:
76
- msg.append("Success pinging service \n Receive :{}".format(res))
76
+ msg.append(f"Success pinging service \n Receive :{res}")
77
77
  else:
78
78
  msg.append(" - Failed pinging service")
79
79
  raise UserError("\n".join(msg))
@@ -5,7 +5,6 @@ from odoo import api, fields, models
5
5
 
6
6
 
7
7
  class SaleOrder(models.Model):
8
-
9
8
  _inherit = "sale.order"
10
9
 
11
10
  postfinance_ebill_client_order_ref = fields.Char(
@@ -0,0 +1,15 @@
1
+ ## Create a service
2
+
3
+ First you need to be registred on 'Postfinance eBill service
4
+ \<<https://www.postfinance.ch/en/business/products/accounts-receivable-solutions/e-bill-invoice-issuer.html>\>'
5
+ To create a service go to Accounting - Configuration - Payments -
6
+ Postfinance eBill Service
7
+
8
+ ## Configure a customer and create his contract
9
+
10
+ The contracts specific to Postfinance e-billing are located in
11
+ Accounting - Customers - eBill Postfinance Contract Create a contract
12
+ for a customer with his PayerId and make sure that the contract is
13
+ active by being in Open state with valid start/end dates.
14
+
15
+ Set Customer Invoice Transmission Method on the customer to Postfinance.
@@ -0,0 +1 @@
1
+ - Thierry Ducrest \<<thierry.ducrest@camptocamp.com>\>
@@ -1 +1,2 @@
1
- This module implements the exchange of electronic invoices with the Postfinance web service.
1
+ This module implements the exchange of electronic invoices with the
2
+ Postfinance web service.
@@ -0,0 +1,3 @@
1
+ This module needs the Python library ebilling_postfiance which can be
2
+ installed from Pypi. More information can be found at
3
+ [repository https://github.com/camptocamp/ebilling-postfinance](repository%20https://github.com/camptocamp/ebilling-postfinance).
@@ -0,0 +1,10 @@
1
+ ToDo
2
+
3
+ - Add option to import the contract subscription (csv)
4
+ - Add the download of this csv from web service, but what is the
5
+ endpoint ?
6
+
7
+ Nice to have
8
+
9
+ - Add a link to the failed job in the chatter message.
10
+ - Add an action on partner to create a ebilling contract.
@@ -0,0 +1,6 @@
1
+ To use this module, you need to:
2
+
3
+ 1. Configure the service, customers and contracts as described in the
4
+ CONFIGURATION section.
5
+ 2. Create an invoice for a customer with an open Postfinance contract.
6
+ 3. Validate the invoice, and click the Send eBill button.
@@ -1,4 +1,3 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
1
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
2
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
3
  <head>
@@ -9,10 +8,11 @@
9
8
 
10
9
  /*
11
10
  :Author: David Goodger (goodger@python.org)
12
- :Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11
+ :Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
13
12
  :Copyright: This stylesheet has been placed in the public domain.
14
13
 
15
14
  Default cascading style sheet for the HTML output of Docutils.
15
+ Despite the name, some widely supported CSS2 features are used.
16
16
 
17
17
  See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
18
18
  customize this style sheet.
@@ -275,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code {
275
275
  margin-left: 2em ;
276
276
  margin-right: 2em }
277
277
 
278
- pre.code .ln { color: grey; } /* line numbers */
278
+ pre.code .ln { color: gray; } /* line numbers */
279
279
  pre.code, code { background-color: #eeeeee }
280
280
  pre.code .comment, code .comment { color: #5C6576 }
281
281
  pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -301,7 +301,7 @@ span.option {
301
301
  span.pre {
302
302
  white-space: pre }
303
303
 
304
- span.problematic {
304
+ span.problematic, pre.problematic {
305
305
  color: red }
306
306
 
307
307
  span.section-subtitle {
@@ -367,17 +367,20 @@ ul.auto-toc {
367
367
  !! This file is generated by oca-gen-addon-readme !!
368
368
  !! changes will be overwritten. !!
369
369
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370
- !! source digest: sha256:8fe54c201370aabd37f966becd9bc102925267307e434f56a4c558a943f058ed
370
+ !! source digest: sha256:6f6e6ca32f9808a18ea3fad1447dd4f32abbd1d4f6ee1ad8944f1e66b39f9808
371
371
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372
- <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-switzerland/tree/16.0/ebill_postfinance"><img alt="OCA/l10n-switzerland" src="https://img.shields.io/badge/github-OCA%2Fl10n--switzerland-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-switzerland-16-0/l10n-switzerland-16-0-ebill_postfinance"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-switzerland&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373
- <p>This module implements the exchange of electronic invoices with the Postfinance web service.</p>
372
+ <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-switzerland/tree/17.0/ebill_postfinance"><img alt="OCA/l10n-switzerland" src="https://img.shields.io/badge/github-OCA%2Fl10n--switzerland-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-switzerland-17-0/l10n-switzerland-17-0-ebill_postfinance"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-switzerland&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373
+ <p>This module implements the exchange of electronic invoices with the
374
+ Postfinance web service.</p>
374
375
  <p><strong>Table of contents</strong></p>
375
376
  <div class="contents local topic" id="contents">
376
377
  <ul class="simple">
377
378
  <li><a class="reference internal" href="#installation" id="toc-entry-1">Installation</a></li>
378
- <li><a class="reference internal" href="#configuration" id="toc-entry-2">Configuration</a></li>
379
+ <li><a class="reference internal" href="#configuration" id="toc-entry-2">Configuration</a><ul>
379
380
  <li><a class="reference internal" href="#create-a-service" id="toc-entry-3">Create a service</a></li>
380
381
  <li><a class="reference internal" href="#configure-a-customer-and-create-his-contract" id="toc-entry-4">Configure a customer and create his contract</a></li>
382
+ </ul>
383
+ </li>
381
384
  <li><a class="reference internal" href="#usage" id="toc-entry-5">Usage</a></li>
382
385
  <li><a class="reference internal" href="#known-issues-roadmap" id="toc-entry-6">Known issues / Roadmap</a></li>
383
386
  <li><a class="reference internal" href="#bug-tracker" id="toc-entry-7">Bug Tracker</a></li>
@@ -391,28 +394,35 @@ ul.auto-toc {
391
394
  </div>
392
395
  <div class="section" id="installation">
393
396
  <h1><a class="toc-backref" href="#toc-entry-1">Installation</a></h1>
394
- <p>This module needs the Python library <cite>ebilling_postfiance</cite> which can be installed from Pypi.
395
- More information can be found at <a class="reference external" href="repositoryhttps://github.com/camptocamp/ebilling-postfinance">repositoryhttps://github.com/camptocamp/ebilling-postfinance</a>.</p>
397
+ <p>This module needs the Python library ebilling_postfiance which can be
398
+ installed from Pypi. More information can be found at
399
+ <a class="reference external" href="repository%20https://github.com/camptocamp/ebilling-postfinance">repository</a>
400
+ <a class="reference external" href="https://github.com/camptocamp/ebilling-postfinance">https://github.com/camptocamp/ebilling-postfinance</a>.</p>
396
401
  </div>
397
402
  <div class="section" id="configuration">
398
403
  <h1><a class="toc-backref" href="#toc-entry-2">Configuration</a></h1>
399
- </div>
400
404
  <div class="section" id="create-a-service">
401
- <h1><a class="toc-backref" href="#toc-entry-3">Create a service</a></h1>
402
- <p>First you need to be registred on ‘Postfinance eBill service &lt;<a class="reference external" href="https://www.postfinance.ch/en/business/products/accounts-receivable-solutions/e-bill-invoice-issuer.html">https://www.postfinance.ch/en/business/products/accounts-receivable-solutions/e-bill-invoice-issuer.html</a>&gt;’
403
- To create a service go to <cite>Accounting - Configuration - Payments - Postfinance eBill Service</cite></p>
405
+ <h2><a class="toc-backref" href="#toc-entry-3">Create a service</a></h2>
406
+ <p>First you need to be registred on ‘Postfinance eBill service
407
+ &lt;<a class="reference external" href="https://www.postfinance.ch/en/business/products/accounts-receivable-solutions/e-bill-invoice-issuer.html">https://www.postfinance.ch/en/business/products/accounts-receivable-solutions/e-bill-invoice-issuer.html</a>&gt;’
408
+ To create a service go to Accounting - Configuration - Payments -
409
+ Postfinance eBill Service</p>
404
410
  </div>
405
411
  <div class="section" id="configure-a-customer-and-create-his-contract">
406
- <h1><a class="toc-backref" href="#toc-entry-4">Configure a customer and create his contract</a></h1>
407
- <p>The contracts specific to Postfinance e-billing are located in <cite>Accounting - Customers - eBill Postfinance Contract</cite>
408
- Create a contract for a customer with his PayerId and make sure that the contract is active by being in <cite>Open</cite> state with valid start/end dates.</p>
409
- <p>Set <cite>Customer Invoice Transmission Method</cite> on the customer to Postfinance.</p>
412
+ <h2><a class="toc-backref" href="#toc-entry-4">Configure a customer and create his contract</a></h2>
413
+ <p>The contracts specific to Postfinance e-billing are located in
414
+ Accounting - Customers - eBill Postfinance Contract Create a contract
415
+ for a customer with his PayerId and make sure that the contract is
416
+ active by being in Open state with valid start/end dates.</p>
417
+ <p>Set Customer Invoice Transmission Method on the customer to Postfinance.</p>
418
+ </div>
410
419
  </div>
411
420
  <div class="section" id="usage">
412
421
  <h1><a class="toc-backref" href="#toc-entry-5">Usage</a></h1>
413
422
  <p>To use this module, you need to:</p>
414
423
  <ol class="arabic simple">
415
- <li>Configure the service, customers and contracts as described in the CONFIGURATION section.</li>
424
+ <li>Configure the service, customers and contracts as described in the
425
+ CONFIGURATION section.</li>
416
426
  <li>Create an invoice for a customer with an open Postfinance contract.</li>
417
427
  <li>Validate the invoice, and click the Send eBill button.</li>
418
428
  </ol>
@@ -422,7 +432,8 @@ Create a contract for a customer with his PayerId and make sure that the contrac
422
432
  <p>ToDo</p>
423
433
  <ul class="simple">
424
434
  <li>Add option to import the contract subscription (csv)</li>
425
- <li>Add the download of this csv from web service, but what is the endpoint ?</li>
435
+ <li>Add the download of this csv from web service, but what is the
436
+ endpoint ?</li>
426
437
  </ul>
427
438
  <p>Nice to have</p>
428
439
  <ul class="simple">
@@ -435,7 +446,7 @@ Create a contract for a customer with his PayerId and make sure that the contrac
435
446
  <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/l10n-switzerland/issues">GitHub Issues</a>.
436
447
  In case of trouble, please check there if your issue has already been reported.
437
448
  If you spotted it first, help us to smash it by providing a detailed and welcomed
438
- <a class="reference external" href="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**">feedback</a>.</p>
449
+ <a class="reference external" href="https://github.com/OCA/l10n-switzerland/issues/new?body=module:%20ebill_postfinance%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
439
450
  <p>Do not contact contributors directly about support or help with technical issues.</p>
440
451
  </div>
441
452
  <div class="section" id="credits">
@@ -455,13 +466,15 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
455
466
  <div class="section" id="maintainers">
456
467
  <h2><a class="toc-backref" href="#toc-entry-11">Maintainers</a></h2>
457
468
  <p>This module is maintained by the OCA.</p>
458
- <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
469
+ <a class="reference external image-reference" href="https://odoo-community.org">
470
+ <img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
471
+ </a>
459
472
  <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
460
473
  mission is to support the collaborative development of Odoo features and
461
474
  promote its widespread use.</p>
462
475
  <p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
463
476
  <p><a class="reference external image-reference" href="https://github.com/TDu"><img alt="TDu" src="https://github.com/TDu.png?size=40px" /></a></p>
464
- <p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-switzerland/tree/16.0/ebill_postfinance">OCA/l10n-switzerland</a> project on GitHub.</p>
477
+ <p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-switzerland/tree/17.0/ebill_postfinance">OCA/l10n-switzerland</a> project on GitHub.</p>
465
478
  <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
466
479
  </div>
467
480
  </div>
@@ -5,6 +5,7 @@ import logging
5
5
  import os
6
6
  from os.path import dirname, join
7
7
 
8
+ import requests
8
9
  from vcr import VCR
9
10
  from xmlunittest import XmlTestMixin
10
11
 
@@ -16,6 +17,7 @@ _logger = logging.getLogger(__name__)
16
17
  class CommonCase(TransactionCase, XmlTestMixin):
17
18
  @classmethod
18
19
  def setUpClass(cls):
20
+ cls._super_send = requests.Session.send
19
21
  super().setUpClass()
20
22
  cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True))
21
23
  cls.service = cls.env["ebill.postfinance.service"].create(
@@ -41,7 +43,7 @@ class CommonCase(TransactionCase, XmlTestMixin):
41
43
  cls.company.phone = ""
42
44
  cls.bank = cls.env.ref("base.res_bank_1")
43
45
  cls.bank.bic = 777
44
- cls.tax7 = cls.env.ref("l10n_ch.{}_vat_77".format(cls.company.id))
46
+ cls.tax7 = cls.env.ref(f"account.{cls.company.id}_vat_77")
45
47
  cls.partner_bank = cls.env["res.partner.bank"].create(
46
48
  {
47
49
  "bank_id": cls.bank.id,
@@ -51,7 +53,7 @@ class CommonCase(TransactionCase, XmlTestMixin):
51
53
  "l10n_ch_qr_iban": "CH2130808001234567827",
52
54
  }
53
55
  )
54
- cls.terms = cls.env.ref("account.account_payment_term_15days")
56
+ cls.payment_term = cls.env.ref("account.account_payment_term_advance_60days")
55
57
  cls.state = cls.env["res.country.state"].create(
56
58
  {"code": "RR", "name": "Fribourg", "country_id": cls.country.id}
57
59
  )
@@ -161,6 +163,11 @@ class CommonCase(TransactionCase, XmlTestMixin):
161
163
  cls.invoice.payment_reference = "210000000003139471430009017"
162
164
  cls.invoice.partner_bank_id = cls.partner_bank.id
163
165
 
166
+ @classmethod
167
+ def _request_handler(cls, s, r, /, **kw):
168
+ """Don't block external requests."""
169
+ return cls._super_send(s, r, **kw)
170
+
164
171
  @staticmethod
165
172
  def compare_xml_line_by_line(content, expected):
166
173
  """This a quick way to check the diff line by line to ease debugging"""
@@ -76,7 +76,7 @@
76
76
  </AccountAssignment>
77
77
  <Language>en</Language>
78
78
  <PaymentInformation>
79
- <PaymentDueDate>2019-07-01</PaymentDueDate>
79
+ <PaymentDueDate>2019-08-20</PaymentDueDate>
80
80
  <PaymentType>IBAN</PaymentType>
81
81
  <fixAmount>Yes</fixAmount>
82
82
  <IBAN>
@@ -25,7 +25,6 @@ class TestEbillPostfinance(CommonCase):
25
25
  os.path.join(
26
26
  os.path.dirname(__file__), "examples", "yellowbill_qr_iban.xml"
27
27
  ),
28
- "r",
29
28
  ) as f:
30
29
  data = f.read()
31
30
  data = data.encode("utf-8")
@@ -34,7 +34,7 @@ class TestEbillPostfinanceMessageYB(CommonCase):
34
34
  def test_invoice_qr(self):
35
35
  """Check XML payload genetated for an invoice."""
36
36
  self.invoice.name = "INV_TEST_01"
37
- self.invoice.invoice_date_due = "2019-07-01"
37
+ self.invoice.invoice_payment_term_id = self.payment_term
38
38
  message = self.invoice.create_postfinance_ebill()
39
39
  message.set_transaction_id()
40
40
  message.payload = message._generate_payload_yb()
@@ -19,7 +19,7 @@
19
19
  <group
20
20
  name="postfinance"
21
21
  string="Postfinance"
22
- attrs="{'invisible': [('is_postfinance_contract', '=', False)]}"
22
+ invisible="not is_postfinance_contract"
23
23
  >
24
24
  <field name="postfinance_service_id" />
25
25
  <field name="postfinance_billerid" />
@@ -38,7 +38,7 @@
38
38
  class="oe_stat_button"
39
39
  icon="fa-user-o"
40
40
  string="Set invoicing method"
41
- attrs="{'invisible': [('is_postfinance_method_on_partner', '=', True)]}"
41
+ invisible="is_postfinance_method_on_partner"
42
42
  >
43
43
  </button>
44
44
  <button
@@ -77,7 +77,7 @@
77
77
  <field name="file_type_to_use" readonly="1" />
78
78
  <field
79
79
  name="use_file_type_xml_paynet"
80
- attrs="{'invisible':[('file_type_to_use', '!=', 'XML')]}"
80
+ invisible="file_type_to_use != 'XML'"
81
81
  />
82
82
  <field
83
83
  name="partner_bank_id"
@@ -1,21 +1,21 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-ebill_postfinance
3
- Version: 16.0.1.0.0.3
3
+ Version: 17.0.1.0.0.3
4
+ Requires-Python: >=3.10
5
+ Requires-Dist: ebilling_postfinance
6
+ Requires-Dist: odoo-addon-account_invoice_export>=17.0dev,<17.1dev
7
+ Requires-Dist: odoo-addon-base_ebill_payment_contract>=17.0dev,<17.1dev
8
+ Requires-Dist: odoo>=17.0a,<17.1dev
9
+ Requires-Dist: zeep
4
10
  Summary: Postfinance eBill integration
5
11
  Home-page: https://github.com/OCA/l10n-switzerland
12
+ License: AGPL-3
6
13
  Author: Camptocamp,Odoo Community Association (OCA)
7
14
  Author-email: support@odoo-community.org
8
- License: AGPL-3
9
15
  Classifier: Programming Language :: Python
10
16
  Classifier: Framework :: Odoo
11
- Classifier: Framework :: Odoo :: 16.0
17
+ Classifier: Framework :: Odoo :: 17.0
12
18
  Classifier: License :: OSI Approved :: GNU Affero General Public License v3
13
- Requires-Python: >=3.10
14
- Requires-Dist: ebilling-postfinance
15
- Requires-Dist: odoo-addon-account-invoice-export <16.1dev,>=16.0dev
16
- Requires-Dist: odoo-addon-base-ebill-payment-contract <16.1dev,>=16.0dev
17
- Requires-Dist: odoo <16.1dev,>=16.0a
18
- Requires-Dist: zeep
19
19
 
20
20
  =================
21
21
  eBill Postfinance
@@ -26,7 +26,7 @@ eBill Postfinance
26
26
  !! This file is generated by oca-gen-addon-readme !!
27
27
  !! changes will be overwritten. !!
28
28
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29
- !! source digest: sha256:8fe54c201370aabd37f966becd9bc102925267307e434f56a4c558a943f058ed
29
+ !! source digest: sha256:6f6e6ca32f9808a18ea3fad1447dd4f32abbd1d4f6ee1ad8944f1e66b39f9808
30
30
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
31
31
 
32
32
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -36,18 +36,19 @@ eBill Postfinance
36
36
  :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
37
37
  :alt: License: AGPL-3
38
38
  .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--switzerland-lightgray.png?logo=github
39
- :target: https://github.com/OCA/l10n-switzerland/tree/16.0/ebill_postfinance
39
+ :target: https://github.com/OCA/l10n-switzerland/tree/17.0/ebill_postfinance
40
40
  :alt: OCA/l10n-switzerland
41
41
  .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
42
- :target: https://translation.odoo-community.org/projects/l10n-switzerland-16-0/l10n-switzerland-16-0-ebill_postfinance
42
+ :target: https://translation.odoo-community.org/projects/l10n-switzerland-17-0/l10n-switzerland-17-0-ebill_postfinance
43
43
  :alt: Translate me on Weblate
44
44
  .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
45
- :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-switzerland&target_branch=16.0
45
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-switzerland&target_branch=17.0
46
46
  :alt: Try me on Runboat
47
47
 
48
48
  |badge1| |badge2| |badge3| |badge4| |badge5|
49
49
 
50
- This module implements the exchange of electronic invoices with the Postfinance web service.
50
+ This module implements the exchange of electronic invoices with the
51
+ Postfinance web service.
51
52
 
52
53
  **Table of contents**
53
54
 
@@ -57,48 +58,55 @@ This module implements the exchange of electronic invoices with the Postfinance
57
58
  Installation
58
59
  ============
59
60
 
60
- This module needs the Python library `ebilling_postfiance` which can be installed from Pypi.
61
- More information can be found at `<repository https://github.com/camptocamp/ebilling-postfinance>`_.
61
+ This module needs the Python library ebilling_postfiance which can be
62
+ installed from Pypi. More information can be found at
63
+ `repository <repository%20https://github.com/camptocamp/ebilling-postfinance>`__
64
+ https://github.com/camptocamp/ebilling-postfinance.
62
65
 
63
66
  Configuration
64
67
  =============
65
68
 
66
69
  Create a service
67
- ================
70
+ ----------------
68
71
 
69
- 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>'
70
- To create a service go to `Accounting - Configuration - Payments - Postfinance eBill Service`
72
+ First you need to be registred on 'Postfinance eBill service
73
+ <https://www.postfinance.ch/en/business/products/accounts-receivable-solutions/e-bill-invoice-issuer.html>'
74
+ To create a service go to Accounting - Configuration - Payments -
75
+ Postfinance eBill Service
71
76
 
72
77
  Configure a customer and create his contract
73
- ============================================
78
+ --------------------------------------------
74
79
 
75
- The contracts specific to Postfinance e-billing are located in `Accounting - Customers - eBill Postfinance Contract`
76
- 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.
80
+ The contracts specific to Postfinance e-billing are located in
81
+ Accounting - Customers - eBill Postfinance Contract Create a contract
82
+ for a customer with his PayerId and make sure that the contract is
83
+ active by being in Open state with valid start/end dates.
77
84
 
78
- Set `Customer Invoice Transmission Method` on the customer to Postfinance.
85
+ Set Customer Invoice Transmission Method on the customer to Postfinance.
79
86
 
80
87
  Usage
81
88
  =====
82
89
 
83
90
  To use this module, you need to:
84
91
 
85
- #. Configure the service, customers and contracts as described in the CONFIGURATION section.
86
- #. Create an invoice for a customer with an open Postfinance contract.
87
- #. Validate the invoice, and click the Send eBill button.
92
+ 1. Configure the service, customers and contracts as described in the
93
+ CONFIGURATION section.
94
+ 2. Create an invoice for a customer with an open Postfinance contract.
95
+ 3. Validate the invoice, and click the Send eBill button.
88
96
 
89
97
  Known issues / Roadmap
90
98
  ======================
91
99
 
92
100
  ToDo
93
101
 
94
- * Add option to import the contract subscription (csv)
95
- * Add the download of this csv from web service, but what is the endpoint ?
96
-
102
+ - Add option to import the contract subscription (csv)
103
+ - Add the download of this csv from web service, but what is the
104
+ endpoint ?
97
105
 
98
106
  Nice to have
99
107
 
100
- * Add a link to the failed job in the chatter message.
101
- * Add an action on partner to create a ebilling contract.
108
+ - Add a link to the failed job in the chatter message.
109
+ - Add an action on partner to create a ebilling contract.
102
110
 
103
111
  Bug Tracker
104
112
  ===========
@@ -106,7 +114,7 @@ Bug Tracker
106
114
  Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-switzerland/issues>`_.
107
115
  In case of trouble, please check there if your issue has already been reported.
108
116
  If you spotted it first, help us to smash it by providing a detailed and welcomed
109
- `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**>`_.
117
+ `feedback <https://github.com/OCA/l10n-switzerland/issues/new?body=module:%20ebill_postfinance%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
110
118
 
111
119
  Do not contact contributors directly about support or help with technical issues.
112
120
 
@@ -114,17 +122,17 @@ Credits
114
122
  =======
115
123
 
116
124
  Authors
117
- ~~~~~~~
125
+ -------
118
126
 
119
127
  * Camptocamp
120
128
 
121
129
  Contributors
122
- ~~~~~~~~~~~~
130
+ ------------
123
131
 
124
- * Thierry Ducrest <thierry.ducrest@camptocamp.com>
132
+ - Thierry Ducrest <thierry.ducrest@camptocamp.com>
125
133
 
126
134
  Maintainers
127
- ~~~~~~~~~~~
135
+ -----------
128
136
 
129
137
  This module is maintained by the OCA.
130
138
 
@@ -144,6 +152,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
144
152
 
145
153
  |maintainer-TDu|
146
154
 
147
- This module is part of the `OCA/l10n-switzerland <https://github.com/OCA/l10n-switzerland/tree/16.0/ebill_postfinance>`_ project on GitHub.
155
+ This module is part of the `OCA/l10n-switzerland <https://github.com/OCA/l10n-switzerland/tree/17.0/ebill_postfinance>`_ project on GitHub.
148
156
 
149
157
  You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
@@ -1,44 +1,44 @@
1
- odoo/addons/ebill_postfinance/README.rst,sha256=XEDJ0JSB4Fvm_K5iN1C-mI9NRgKmgTdETmxl-R9NQEI,4685
1
+ odoo/addons/ebill_postfinance/README.rst,sha256=50fAKvv_e3bEBzBUFbRQkK6TURR7qgmFy6CT2VW4NPI,4744
2
2
  odoo/addons/ebill_postfinance/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
3
- odoo/addons/ebill_postfinance/__manifest__.py,sha256=Y3yfqnRRlJH03cq-dGu9f9KqJ6pp3g3EmG6w10HD1JY,1009
3
+ odoo/addons/ebill_postfinance/__manifest__.py,sha256=1udZ9bWGKjn-W4cBvfdbYzkHbkuGXBvh10wd7HyyOnQ,1009
4
4
  odoo/addons/ebill_postfinance/data/ir_cron.xml,sha256=8Qx-IU5w2M6qWPLurex0IDH9nJhVTcPEVg3QureQKj0,630
5
5
  odoo/addons/ebill_postfinance/data/mail_activity_type.xml,sha256=vn41DG3O8F1P1YG4xifAuXHBicY13oHIeKeZTvfshnc,438
6
6
  odoo/addons/ebill_postfinance/data/transmit.method.xml,sha256=wiFMLenJbf5Cx4fKS56sWnVf58opiWKIEpT41MYihR0,387
7
- odoo/addons/ebill_postfinance/i18n/ebill_postfinance.pot,sha256=sFABayEUNYIKqnK3Dq67G33jj62DIdpNjdRJ--UYeo8,18685
7
+ odoo/addons/ebill_postfinance/i18n/ebill_postfinance.pot,sha256=JOilTDxQZSny_CfSQR1olmH1EoaPdMoVMAYD07YYT00,18167
8
8
  odoo/addons/ebill_postfinance/messages/invoice-2003A.jinja,sha256=RLLvsbKIG-Yiwzx1ZE4rruPmlyoV4uMr8sJNUTmeF5k,9516
9
9
  odoo/addons/ebill_postfinance/messages/invoice-yellowbill.jinja,sha256=vsajAMlsFuuyS0eeD_xWol7oPRGMz0coYZZHXZeYQfE,12174
10
10
  odoo/addons/ebill_postfinance/messages/ybInvoice_V2.0.4.xsd,sha256=5fbM7Miwb59sXvUgjwJMszIJ19NuHQU3gsGaxTO27fA,48785
11
11
  odoo/addons/ebill_postfinance/models/__init__.py,sha256=2uZGfhJOczB94W5EFvXlky-tXcJeWRF9O1-rtCGvuxA,177
12
- odoo/addons/ebill_postfinance/models/account_move.py,sha256=JnMnT1Fu8HtgTKTQaMm2_eLu_hv18SF-l6GSTMXlLaM,5208
13
- odoo/addons/ebill_postfinance/models/ebill_payment_contract.py,sha256=kVunbB_XN6pw0zcf6iCfe-ceuqMpoalw3TIr1UEtST4,2913
14
- odoo/addons/ebill_postfinance/models/ebill_postfinance_invoice_message.py,sha256=prOJbNW0WJJd-qJNVhsSGgc-VJ8f6W4uTuLIwtSFF5g,15535
15
- odoo/addons/ebill_postfinance/models/ebill_postfinance_service.py,sha256=8yn9FqlXv_bA26mvlGRslW4cfKVmHRIKpZDziixeLzE,5404
16
- odoo/addons/ebill_postfinance/models/sale_order.py,sha256=M2xxj8F5InyBMgJFRJX3ARrXYy70VVcUpdcrd6Ujii8,597
17
- odoo/addons/ebill_postfinance/readme/CONFIGURE.rst,sha256=2RxGc9in7UFE1DUKz_z5mgXcgkJWmk7l2xsOL86AzKc,728
18
- odoo/addons/ebill_postfinance/readme/CONTRIBUTORS.rst,sha256=uAPcwg62NVS4AhHWOH1ylKl_Fyk39Tz7bGv0X4PC5Xs,51
19
- odoo/addons/ebill_postfinance/readme/DESCRIPTION.rst,sha256=EMQrIPrfP7M_tLpV_88DW20SQ_2FHCj3MyqkYcDJ6DM,93
20
- odoo/addons/ebill_postfinance/readme/INSTALL.rst,sha256=RuSmRKy3-0dy0LLBvonTcIF7JUERVM0kbpvJqxxcLLo,194
21
- odoo/addons/ebill_postfinance/readme/ROADMAP.rst,sha256=LIkYLW8NdngN_pSjhmjDM1F_9ZNsFUyXDplDzfyUlek,266
22
- odoo/addons/ebill_postfinance/readme/USAGE.rst,sha256=6yddFhmoN74--rLm0pmVa5azulbhUW7K3bYnO9vSIHA,256
12
+ odoo/addons/ebill_postfinance/models/account_move.py,sha256=c1He6x_UTUdeYGciubS5VitDQ7CvgYYxekJg9tqWeSY,5199
13
+ odoo/addons/ebill_postfinance/models/ebill_payment_contract.py,sha256=mUDZco6YyQ2vl-0g8wZxEflCtMizELI61bXyXu-CndM,2924
14
+ odoo/addons/ebill_postfinance/models/ebill_postfinance_invoice_message.py,sha256=Rbi-9QwvYc8n1eLgkTWSsHXSlKtDLP8q1rIgMw3qUwo,13848
15
+ odoo/addons/ebill_postfinance/models/ebill_postfinance_service.py,sha256=0BCZYJRuJoA0mZZ_d7UC9s4MFiSO9wJ9q2MdxzKh_Q4,5396
16
+ odoo/addons/ebill_postfinance/models/sale_order.py,sha256=FcZO5xIwLwQ3DfIRhxQ_u3ce4xF4JLRXSoLq4gcxpj0,596
17
+ odoo/addons/ebill_postfinance/readme/CONFIGURE.md,sha256=9Ltm2r63Vf2hXKqelKqy3rRKWqh4uJOui4VXtcLQsmo,668
18
+ odoo/addons/ebill_postfinance/readme/CONTRIBUTORS.md,sha256=bBvPafZ73ac3e7bSdQNZWSRUg73Ruybl5BTH_KuMqzU,55
19
+ odoo/addons/ebill_postfinance/readme/DESCRIPTION.md,sha256=5_rnfEXypKkAz_bzv-SvnqhObrKz7s0y4GOOB3KtULo,93
20
+ odoo/addons/ebill_postfinance/readme/INSTALL.md,sha256=0cDWAjRzBqjmLKxU0-N_UCKMIZtDJ7cpWrmO9ElhndA,254
21
+ odoo/addons/ebill_postfinance/readme/ROADMAP.md,sha256=nLq81zndHINi8A-4QARIR9d0UskLnMImbB-77m_DOZM,267
22
+ odoo/addons/ebill_postfinance/readme/USAGE.md,sha256=g4P07RKTNtVZlE8AGv7QvS-hy1mC0wmoE5pNgsvX_EQ,263
23
23
  odoo/addons/ebill_postfinance/security/ir.model.access.csv,sha256=fJD04mfPfepHjkTEJxMqMdSM5CX7pYGy3cPP-b6GC-A,687
24
24
  odoo/addons/ebill_postfinance/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
25
- odoo/addons/ebill_postfinance/static/description/index.html,sha256=otn-rP3cuD1QcdY0wbJesez-IT48DdiJSVrGBZww4o0,15669
25
+ odoo/addons/ebill_postfinance/static/description/index.html,sha256=TNSW-pdlrjTGYU8COxD86wLlJ8mH7eWGqCimumdS_xs,15755
26
26
  odoo/addons/ebill_postfinance/tests/__init__.py,sha256=_OvInRZJ36eC1p_O1Ip8NmFzMe2sakl8IYI6OU4ye9o,144
27
- odoo/addons/ebill_postfinance/tests/common.py,sha256=kh0AGK0tvhXJMLnbNtOOBnhQML7UQqMFExvzW6-le4k,7458
28
- odoo/addons/ebill_postfinance/tests/test_ebill_postfinance.py,sha256=KpyAx2K9H0RUFNqn9BppI0JlXswDrDVGMQzeI8j3NKs,1752
29
- odoo/addons/ebill_postfinance/tests/test_ebill_postfinance_message_yb.py,sha256=db-LWnT83XIz-wr_8uiVXOip2kM91PdYUbhPOmtwMuQ,2446
27
+ odoo/addons/ebill_postfinance/tests/common.py,sha256=MvrLDXGdTrECYPvKRCxGb4lVpPosEZqVWA805--5usI,7681
28
+ odoo/addons/ebill_postfinance/tests/test_ebill_postfinance.py,sha256=Kk3PTQDlnYJRaeeEfCSGmvmuzmPgNfP5aiM6mMC-V_I,1735
29
+ odoo/addons/ebill_postfinance/tests/test_ebill_postfinance_message_yb.py,sha256=Q0nY9gQza53w_oqj-hPQyAU_2HrZRTphOc0N5aXImIU,2458
30
30
  odoo/addons/ebill_postfinance/tests/test_ebill_postfinance_message_yb_creditnote.py,sha256=kLywWsOueBjPm1vsx2fhZvhgy_2mxyWQ791S_EpkeRU,2550
31
31
  odoo/addons/ebill_postfinance/tests/examples/credit_note_yb.xml,sha256=9J5A0d9K-4ULmyjd0b2jpHREtEU5tk2PRs4eHEKzxM4,8452
32
- odoo/addons/ebill_postfinance/tests/examples/invoice_qr_yb.xml,sha256=5Bkf5ePizH7rLOxD-swMNNmyEBOyJz0zkILYrJPnWRM,8733
32
+ odoo/addons/ebill_postfinance/tests/examples/invoice_qr_yb.xml,sha256=OzzB5qPtnSnkj_X61ujWBlhqpk7DyQT0m9LwhFqt-Mc,8733
33
33
  odoo/addons/ebill_postfinance/tests/examples/yellowbill_qr_iban.xml,sha256=o6Q5l9hHG0S9RtVjLoXccJ5Arh3CI98y1BD5JMlym84,79818
34
34
  odoo/addons/ebill_postfinance/tests/fixtures/cassettes/test_ping_service.yaml,sha256=iJqfZeJIrrK-H7dXwTzYDqqheRpW9APHqjVjQsfwa0c,70472
35
35
  odoo/addons/ebill_postfinance/tests/fixtures/cassettes/test_search_invoices.yaml,sha256=rcVgP3wrk8xV8BfcPNlPyfE3UpC-kDOpPpWI2C-H3vE,37776
36
36
  odoo/addons/ebill_postfinance/tests/fixtures/cassettes/test_upload_file.yaml,sha256=u5trLGrZ8OjtsQrsWZ-xwEWB8Ryk9oefKlxfqf2SkvE,142979
37
- odoo/addons/ebill_postfinance/views/ebill_payment_contract.xml,sha256=efZjo1o4-__vVKU35lfkJ51G97AozOEIzWqRegPKsv4,2452
37
+ odoo/addons/ebill_postfinance/views/ebill_payment_contract.xml,sha256=9RN-XM3vf_OcJHivvaVbMJIz1mHPqSmWUr5JXfszVzc,2399
38
38
  odoo/addons/ebill_postfinance/views/ebill_postfinance_invoice_message.xml,sha256=Mj2TrBjOS2fxaINA_ycsNTqP5Y3KPsWtvGWv2IkxcDM,3269
39
- odoo/addons/ebill_postfinance/views/ebill_postfinance_service.xml,sha256=KhYEQtbxpo91QohFoGED9dIHPAP6AzLdsP_IFPZU5Vc,5989
39
+ odoo/addons/ebill_postfinance/views/ebill_postfinance_service.xml,sha256=t6fTvGNAJMqBovR_1JtCVfd62XcW8U8NHhP_vI1eq-4,5969
40
40
  odoo/addons/ebill_postfinance/views/message_template.xml,sha256=gNBva1ehWFgz6W6lrNCmpxZ_maovQJxhHcBpxcohvZo,213
41
- odoo_addon_ebill_postfinance-16.0.1.0.0.3.dist-info/METADATA,sha256=yVygSai-iBGtfuqs74DUvOELSxOEs-RgfaL9rjRauI4,5409
42
- odoo_addon_ebill_postfinance-16.0.1.0.0.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
43
- odoo_addon_ebill_postfinance-16.0.1.0.0.3.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
44
- odoo_addon_ebill_postfinance-16.0.1.0.0.3.dist-info/RECORD,,
41
+ odoo_addon_ebill_postfinance-17.0.1.0.0.3.dist-info/METADATA,sha256=PsvkEE-zPMKiQCMJirfboG5ly69JbN9AKSF_CsNwrYs,5465
42
+ odoo_addon_ebill_postfinance-17.0.1.0.0.3.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
43
+ odoo_addon_ebill_postfinance-17.0.1.0.0.3.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
44
+ odoo_addon_ebill_postfinance-17.0.1.0.0.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: Whool 1.2
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,13 +0,0 @@
1
- Create a service
2
- ================
3
-
4
- 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>'
5
- To create a service go to `Accounting - Configuration - Payments - Postfinance eBill Service`
6
-
7
- Configure a customer and create his contract
8
- ============================================
9
-
10
- The contracts specific to Postfinance e-billing are located in `Accounting - Customers - eBill Postfinance Contract`
11
- 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.
12
-
13
- Set `Customer Invoice Transmission Method` on the customer to Postfinance.
@@ -1 +0,0 @@
1
- * Thierry Ducrest <thierry.ducrest@camptocamp.com>
@@ -1,2 +0,0 @@
1
- This module needs the Python library `ebilling_postfiance` which can be installed from Pypi.
2
- More information can be found at `<repository https://github.com/camptocamp/ebilling-postfinance>`_.
@@ -1,10 +0,0 @@
1
- ToDo
2
-
3
- * Add option to import the contract subscription (csv)
4
- * Add the download of this csv from web service, but what is the endpoint ?
5
-
6
-
7
- Nice to have
8
-
9
- * Add a link to the failed job in the chatter message.
10
- * Add an action on partner to create a ebilling contract.
@@ -1,5 +0,0 @@
1
- To use this module, you need to:
2
-
3
- #. Configure the service, customers and contracts as described in the CONFIGURATION section.
4
- #. Create an invoice for a customer with an open Postfinance contract.
5
- #. Validate the invoice, and click the Send eBill button.