odoo-addon-ebill-postfinance 18.0.1.2.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.
@@ -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(
@@ -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.2.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.*
@@ -4,7 +4,7 @@ odoo/addons/ebill_postfinance/__manifest__.py,sha256=aZVWX38WubWzjgTWbz3rydFTpWt
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
@@ -39,9 +39,9 @@ odoo/addons/ebill_postfinance/tests/samples/invoice_qr_yb_discount.xml,sha256=1p
39
39
  odoo/addons/ebill_postfinance/tests/samples/yellowbill_qr_iban.xml,sha256=otxiwxkOf1pVOC4jU8EPlZqHzoFNDRTZEcQbEvASn1w,82082
40
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.2.0.dist-info/METADATA,sha256=WOT9X2glF7y79TzHToLigXOZ2D3kvU4qAj5Pr-6NFn0,5681
45
- odoo_addon_ebill_postfinance-18.0.1.2.0.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
46
- odoo_addon_ebill_postfinance-18.0.1.2.0.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
47
- odoo_addon_ebill_postfinance-18.0.1.2.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,,