odoo-addon-ebill-postfinance 18.0.1.1.0__py3-none-any.whl → 18.0.1.2.0.2__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.
@@ -11,7 +11,7 @@ eBill Postfinance
11
11
  !! This file is generated by oca-gen-addon-readme !!
12
12
  !! changes will be overwritten. !!
13
13
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14
- !! source digest: sha256:e717898ad88ed5bab6ea19013e97a879f5c173aea9dc3d53d6214bf53f76a228
14
+ !! source digest: sha256:f9e131d5027475a205b8b044df5f5096fbb20edc595c3437e5cd53a826ee0c37
15
15
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16
16
 
17
17
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -4,7 +4,7 @@
4
4
  {
5
5
  "name": "eBill Postfinance",
6
6
  "summary": """Postfinance eBill integration""",
7
- "version": "18.0.1.1.0",
7
+ "version": "18.0.1.2.0",
8
8
  "license": "AGPL-3",
9
9
  "author": "Camptocamp,Odoo Community Association (OCA)",
10
10
  "maintainers": ["TDu"],
@@ -468,6 +468,13 @@ msgstr ""
468
468
  msgid "The Postfinance system rejected the eBill that was send."
469
469
  msgstr ""
470
470
 
471
+ #. module: ebill_postfinance
472
+ #: model:ir.model.fields,help:ebill_postfinance.field_ebill_postfinance_service__xml_file_language
473
+ msgid ""
474
+ "The language used to generate the XML file, if unset default to the customer"
475
+ " language."
476
+ msgstr ""
477
+
471
478
  #. module: ebill_postfinance
472
479
  #. odoo-python
473
480
  #: code:addons/ebill_postfinance/models/ebill_postfinance_invoice_message.py:0
@@ -504,6 +511,11 @@ msgstr ""
504
511
  msgid "XML Yellow Bill"
505
512
  msgstr ""
506
513
 
514
+ #. module: ebill_postfinance
515
+ #: model:ir.model.fields,field_description:ebill_postfinance.field_ebill_postfinance_service__xml_file_language
516
+ msgid "XML file Language"
517
+ msgstr ""
518
+
507
519
  #. module: ebill_postfinance
508
520
  #: model:ir.model,name:ebill_postfinance.model_ebill_payment_contract
509
521
  msgid "eBill Payment Contract"
@@ -324,8 +324,16 @@ class EbillPostfinanceInvoiceMessage(models.Model):
324
324
  def _get_template_yb(self, jinja_env):
325
325
  return jinja_env.get_template(INVOICE_TEMPLATE_YB)
326
326
 
327
+ def _get_xml_language_code(self):
328
+ if self.service_id.xml_file_language:
329
+ return self.service_id.xml_file_language.code
330
+ if self.ebill_payment_contract_id.partner_id.lang:
331
+ return self.ebill_payment_contract_id.partner_id.lang
332
+ return self.env.lang.code
333
+
327
334
  def _generate_payload(self):
328
335
  self.ensure_one()
336
+ self = self.with_context(lang=self._get_xml_language_code())
329
337
  assert self.state in ("draft", "error")
330
338
  if self.service_id.file_type_to_use == "XML":
331
339
  if self.service_id.use_file_type_xml_paynet:
@@ -57,6 +57,12 @@ class EbillPostfinanceService(models.Model):
57
57
  default="600",
58
58
  help="Timeout for each HTTP (GET, POST) request in seconds.",
59
59
  )
60
+ xml_file_language = fields.Many2one(
61
+ comodel_name="res.lang",
62
+ string="XML file Language",
63
+ help="The language used to generate the XML file, "
64
+ "if unset default to the customer language.",
65
+ )
60
66
 
61
67
  def _get_service(self):
62
68
  return ebilling_postfinance.WebService(
@@ -372,7 +372,7 @@ ul.auto-toc {
372
372
  !! This file is generated by oca-gen-addon-readme !!
373
373
  !! changes will be overwritten. !!
374
374
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375
- !! source digest: sha256:e717898ad88ed5bab6ea19013e97a879f5c173aea9dc3d53d6214bf53f76a228
375
+ !! source digest: sha256:f9e131d5027475a205b8b044df5f5096fbb20edc595c3437e5cd53a826ee0c37
376
376
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377
377
  <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/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-switzerland/tree/18.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-18-0/l10n-switzerland-18-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=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378
378
  <p>This module implements the exchange of electronic invoices with the
@@ -5,7 +5,7 @@
5
5
  <field name="res_model">ebill.postfinance.invoice.message</field>
6
6
  <field name="type">ir.actions.act_window</field>
7
7
  <field name="domain">[('ebill_payment_contract_id', '=', active_id)]</field>
8
- <field name="view_mode">tree,form</field>
8
+ <field name="view_mode">list,form</field>
9
9
  </record>
10
10
  <record model="ir.ui.view" id="ebill_payment_contract_form_view">
11
11
  <field name="name">ebill.payment.contract.form (in ebill_postfinance)</field>
@@ -75,6 +75,7 @@
75
75
  <field name="use_test_service" />
76
76
  <field name="operation_timeout" />
77
77
  <field name="file_type_to_use" readonly="1" />
78
+ <field name="xml_file_language" />
78
79
  <field
79
80
  name="use_file_type_xml_paynet"
80
81
  invisible="file_type_to_use != 'XML'"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-ebill_postfinance
3
- Version: 18.0.1.1.0
3
+ Version: 18.0.1.2.0.2
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: ebilling_postfinance
6
6
  Requires-Dist: odoo-addon-account_invoice_export==18.0.*
@@ -31,7 +31,7 @@ eBill Postfinance
31
31
  !! This file is generated by oca-gen-addon-readme !!
32
32
  !! changes will be overwritten. !!
33
33
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
34
- !! source digest: sha256:e717898ad88ed5bab6ea19013e97a879f5c173aea9dc3d53d6214bf53f76a228
34
+ !! source digest: sha256:f9e131d5027475a205b8b044df5f5096fbb20edc595c3437e5cd53a826ee0c37
35
35
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
36
36
 
37
37
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -1,10 +1,10 @@
1
- odoo/addons/ebill_postfinance/README.rst,sha256=-Dhwk2Xi0p1y5Uqd2NRmMzHM7-8mVJQ1ZJrJjW3pPuM,4953
1
+ odoo/addons/ebill_postfinance/README.rst,sha256=xDE6PGvSueIaep0JLT7qalIdUFsHDNl3O5DHYnn8cTs,4953
2
2
  odoo/addons/ebill_postfinance/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
3
- odoo/addons/ebill_postfinance/__manifest__.py,sha256=SkjHsKijqeooB6toCvy3tuqOeg6g1GVy3t-s0A8jSQM,1009
3
+ odoo/addons/ebill_postfinance/__manifest__.py,sha256=aZVWX38WubWzjgTWbz3rydFTpWtCiTJ0_LKv_2gdmQY,1009
4
4
  odoo/addons/ebill_postfinance/data/ir_cron.xml,sha256=MZ7JTxS6NX6R8cW-Zu1Hf37PWFc6Znoh3k-IX3llJEk,542
5
5
  odoo/addons/ebill_postfinance/data/mail_activity_type.xml,sha256=mP5La42MmtGFeCHQ_EIeoZ3VdH6cgAhtJx7Wfmos9Go,410
6
6
  odoo/addons/ebill_postfinance/data/transmit.method.xml,sha256=q4Mf1yO2Nv_pjhy_lKWhptDEKVHwM7EPCyEhFLmR90s,406
7
- odoo/addons/ebill_postfinance/i18n/ebill_postfinance.pot,sha256=SegmUfMlWSTIpDtec-Sc4z1-SWEU4TUfanFRCl6EDGw,18191
7
+ odoo/addons/ebill_postfinance/i18n/ebill_postfinance.pot,sha256=KzGF68PL61KiMUIUVvpMut0sHlzU1-bp-ksg6EmeyoM,18609
8
8
  odoo/addons/ebill_postfinance/messages/invoice-2003A.jinja,sha256=xd25TK21-QjytwddSqKhiJEswKg58t17_U9yl82qqok,9486
9
9
  odoo/addons/ebill_postfinance/messages/invoice-yellowbill.jinja,sha256=cWrC0Y0Whfos_RWTlzkqw7Lod3XIMokJBlGWltAVPug,12376
10
10
  odoo/addons/ebill_postfinance/messages/ybInvoice_V2.0.4.xsd,sha256=5fbM7Miwb59sXvUgjwJMszIJ19NuHQU3gsGaxTO27fA,48785
@@ -12,8 +12,8 @@ odoo/addons/ebill_postfinance/models/__init__.py,sha256=94IEqunNsjKCa5QhjyG9Nf8f
12
12
  odoo/addons/ebill_postfinance/models/account_move.py,sha256=dtDrHqQ9b1G2fuSSNJcoIVBwWTqO84uqUJHvlL9hUd4,5496
13
13
  odoo/addons/ebill_postfinance/models/account_move_line.py,sha256=uvkDXVDtKqLYVqUNO-b0mPU5mWlvhLwIBv7UERQkPyg,1040
14
14
  odoo/addons/ebill_postfinance/models/ebill_payment_contract.py,sha256=iUal5MIzTB40i9Y-nMYlAmWJsNI4pTVZGUGQIE1j2V4,2979
15
- odoo/addons/ebill_postfinance/models/ebill_postfinance_invoice_message.py,sha256=tNdSwjZFfd2kvqSqH-nb1Jouy5pW57fIDSmEifUYJ38,14201
16
- odoo/addons/ebill_postfinance/models/ebill_postfinance_service.py,sha256=0BCZYJRuJoA0mZZ_d7UC9s4MFiSO9wJ9q2MdxzKh_Q4,5396
15
+ odoo/addons/ebill_postfinance/models/ebill_postfinance_invoice_message.py,sha256=g_OY9PeSkQOBGApJ2dDBSiZJlqNW-AB9_g9rfk_mMdw,14572
16
+ odoo/addons/ebill_postfinance/models/ebill_postfinance_service.py,sha256=GamfNsIFUt8ic0zzyYec_x0VWCmf7iUTMBHR1fDZXPg,5626
17
17
  odoo/addons/ebill_postfinance/models/sale_order.py,sha256=FcZO5xIwLwQ3DfIRhxQ_u3ce4xF4JLRXSoLq4gcxpj0,596
18
18
  odoo/addons/ebill_postfinance/readme/CONFIGURE.md,sha256=9Ltm2r63Vf2hXKqelKqy3rRKWqh4uJOui4VXtcLQsmo,668
19
19
  odoo/addons/ebill_postfinance/readme/CONTRIBUTORS.md,sha256=-UAChp179PC2iHOfWylWiPmdcRXFo5YjCUrTVcyvZDU,102
@@ -23,7 +23,7 @@ odoo/addons/ebill_postfinance/readme/ROADMAP.md,sha256=nLq81zndHINi8A-4QARIR9d0U
23
23
  odoo/addons/ebill_postfinance/readme/USAGE.md,sha256=g4P07RKTNtVZlE8AGv7QvS-hy1mC0wmoE5pNgsvX_EQ,263
24
24
  odoo/addons/ebill_postfinance/security/ir.model.access.csv,sha256=fJD04mfPfepHjkTEJxMqMdSM5CX7pYGy3cPP-b6GC-A,687
25
25
  odoo/addons/ebill_postfinance/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
26
- odoo/addons/ebill_postfinance/static/description/index.html,sha256=qltE20T-n2ZKcmxbqkprgJOASbNZtMRUp8lOUFZB140,16115
26
+ odoo/addons/ebill_postfinance/static/description/index.html,sha256=XuiqwMQxjW9VMX019aaz3cQvwB80P5N6dJ6EmvUF5VY,16115
27
27
  odoo/addons/ebill_postfinance/tests/__init__.py,sha256=8pkOAZOraRCvXwqdSsOIMcOxtdnzf-tT86ePA3Bs-r0,176
28
28
  odoo/addons/ebill_postfinance/tests/common.py,sha256=tC9QJBul59zXXqZhsjsLxuGs83_jxL8eG38w0ZpQfj4,8130
29
29
  odoo/addons/ebill_postfinance/tests/test_account_move.py,sha256=uQNL82ioXdIdWsfB_oSNji9DVvjakP1SD7Kdl-ZiXqA,2439
@@ -37,11 +37,11 @@ odoo/addons/ebill_postfinance/tests/samples/credit_note_yb.xml,sha256=rgaU56WyuM
37
37
  odoo/addons/ebill_postfinance/tests/samples/invoice_qr_yb.xml,sha256=6CJhUgKvNm8KZeHdWmG5jkMO-lM4NVKrg6trL8jsbyg,8787
38
38
  odoo/addons/ebill_postfinance/tests/samples/invoice_qr_yb_discount.xml,sha256=1pOjXRl2FZJUScEoRD0a-dZpIOWBHWjMeUysFsnargg,8911
39
39
  odoo/addons/ebill_postfinance/tests/samples/yellowbill_qr_iban.xml,sha256=otxiwxkOf1pVOC4jU8EPlZqHzoFNDRTZEcQbEvASn1w,82082
40
- odoo/addons/ebill_postfinance/views/ebill_payment_contract.xml,sha256=luoTtE95MwKbhvxC9exb5hZQgoUhi_uHaRTxWn5UmmM,2251
40
+ odoo/addons/ebill_postfinance/views/ebill_payment_contract.xml,sha256=jZJtAsJKs3u9OvSprf0qgPkIdvmrXJxI7ADAPe08Wck,2251
41
41
  odoo/addons/ebill_postfinance/views/ebill_postfinance_invoice_message.xml,sha256=PBuwMKyZwpcoDa6OYKY2a6hN2AZoCer7bMe96uSdadY,3333
42
- odoo/addons/ebill_postfinance/views/ebill_postfinance_service.xml,sha256=znESW62lr7EJW-YbLCsurNTqMqq_DmLNTtiTT_BxEp8,5999
42
+ odoo/addons/ebill_postfinance/views/ebill_postfinance_service.xml,sha256=QTCAkVkmu0clT2tQV4-RST2ms1GLiuXYmmsiWUX50hQ,6062
43
43
  odoo/addons/ebill_postfinance/views/message_template.xml,sha256=gNBva1ehWFgz6W6lrNCmpxZ_maovQJxhHcBpxcohvZo,213
44
- odoo_addon_ebill_postfinance-18.0.1.1.0.dist-info/METADATA,sha256=ottKGBt1AYy6H-r0KWNH4DgaMzjB0o0ddXJ3E9MT3r8,5681
45
- odoo_addon_ebill_postfinance-18.0.1.1.0.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
46
- odoo_addon_ebill_postfinance-18.0.1.1.0.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
47
- odoo_addon_ebill_postfinance-18.0.1.1.0.dist-info/RECORD,,
44
+ odoo_addon_ebill_postfinance-18.0.1.2.0.2.dist-info/METADATA,sha256=w5d4AI1S78D8FwMhtqtcjbzXa3wVWGchmuB-f9f68gE,5683
45
+ odoo_addon_ebill_postfinance-18.0.1.2.0.2.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
46
+ odoo_addon_ebill_postfinance-18.0.1.2.0.2.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
47
+ odoo_addon_ebill_postfinance-18.0.1.2.0.2.dist-info/RECORD,,