trytond-edocument-ubl 8.0.0__tar.gz → 8.0.2__tar.gz

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 (70) hide show
  1. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/PKG-INFO +1 -1
  2. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/edocument.py +3 -2
  3. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/message.xml +4 -0
  4. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/template/2/base.xml +1 -1
  5. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tryton.cfg +1 -1
  6. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/.hgignore +0 -0
  7. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/COPYRIGHT +0 -0
  8. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/LICENSE +0 -0
  9. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/__init__.py +0 -0
  10. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/account.py +0 -0
  11. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/account.xml +0 -0
  12. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/document.py +0 -0
  13. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/exceptions.py +0 -0
  14. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/icons/LICENSE +0 -0
  15. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/bg.po +0 -0
  16. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/ca.po +0 -0
  17. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/cs.po +0 -0
  18. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/de.po +0 -0
  19. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/es.po +0 -0
  20. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/es_419.po +0 -0
  21. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/et.po +0 -0
  22. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/fa.po +0 -0
  23. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/fi.po +0 -0
  24. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/fr.po +0 -0
  25. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/hu.po +0 -0
  26. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/id.po +0 -0
  27. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/it.po +0 -0
  28. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/lo.po +0 -0
  29. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/lt.po +0 -0
  30. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/nl.po +0 -0
  31. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/pl.po +0 -0
  32. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/pt.po +0 -0
  33. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/ro.po +0 -0
  34. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/ru.po +0 -0
  35. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/sl.po +0 -0
  36. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/tr.po +0 -0
  37. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/uk.po +0 -0
  38. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/locale/zh_CN.po +0 -0
  39. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/party.py +0 -0
  40. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/pyproject.toml +0 -0
  41. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/template/2/CreditNote.xml +0 -0
  42. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/template/2/Invoice.xml +0 -0
  43. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/2.4/common/BDNDR-CCTS_CCT_SchemaModule-1.1.xsd +0 -0
  44. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/2.4/common/BDNDR-UnqualifiedDataTypes-1.1.xsd +0 -0
  45. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/2.4/common/UBL-CommonAggregateComponents-2.4.xsd +0 -0
  46. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/2.4/common/UBL-CommonBasicComponents-2.4.xsd +0 -0
  47. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/2.4/common/UBL-CommonExtensionComponents-2.4.xsd +0 -0
  48. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/2.4/common/UBL-CommonSignatureComponents-2.4.xsd +0 -0
  49. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/2.4/common/UBL-ExtensionContentDataType-2.4.xsd +0 -0
  50. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/2.4/common/UBL-QualifiedDataTypes-2.4.xsd +0 -0
  51. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/2.4/common/UBL-SignatureAggregateComponents-2.4.xsd +0 -0
  52. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/2.4/common/UBL-SignatureBasicComponents-2.4.xsd +0 -0
  53. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/2.4/common/UBL-XAdES01903v132-201601-2.4.xsd +0 -0
  54. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/2.4/common/UBL-XAdES01903v141-201601-2.4.xsd +0 -0
  55. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/2.4/common/UBL-xmldsig-core-schema-2.4.xsd +0 -0
  56. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/2.4/common/UBL-xmldsig1-schema-2.4.xsd +0 -0
  57. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/2.4/common/UBL-xmldsig11-schema-2.4.xsd +0 -0
  58. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/2.4/maindoc/UBL-CreditNote-2.4.xsd +0 -0
  59. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/2.4/maindoc/UBL-Invoice-2.4.xsd +0 -0
  60. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/UBL-CreditNote-2.1-Example.xml +0 -0
  61. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/UBL-Invoice-2.1-Example-Trivial.xml +0 -0
  62. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/UBL-Invoice-2.1-Example.xml +0 -0
  63. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/__init__.py +0 -0
  64. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/scenario_ubl_2_credit_note_parse.json +0 -0
  65. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/scenario_ubl_2_credit_note_parse.rst +0 -0
  66. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/scenario_ubl_2_invoice_parse.json +0 -0
  67. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/scenario_ubl_2_invoice_parse.rst +0 -0
  68. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/scenario_ubl_2_invoice_parse_trivial.rst +0 -0
  69. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/test_module.py +0 -0
  70. {trytond_edocument_ubl-8.0.0 → trytond_edocument_ubl-8.0.2}/tests/test_scenario.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: trytond_edocument_ubl
3
- Version: 8.0.0
3
+ Version: 8.0.2
4
4
  Summary: UBL electronic document for Tryton
5
5
  Project-URL: homepage, https://www.tryton.org/
6
6
  Project-URL: documentation, https://docs.tryton.org/modules-edocument-ubl/
@@ -1357,8 +1357,9 @@ class Invoice_Bank(metaclass=PoolMeta):
1357
1357
  financial_account, party)
1358
1358
  account.save()
1359
1359
  else:
1360
- raise InvoiceError(gettext(
1361
- 'edocument_ubl.msg_account_not_found',
1360
+ raise InvoiceError(ngettext(
1361
+ 'edocument_ubl.msg_bank_account_not_found',
1362
+ len(payees),
1362
1363
  parties=','.join([p.rec_name for p in payees]),
1363
1364
  account=etree.tostring(
1364
1365
  financial_account,
@@ -24,5 +24,9 @@ this repository contains the full copyright notices and license terms. -->
24
24
  <field name="text">Could not find tax for:
25
25
  %(tax_category)s</field>
26
26
  </record>
27
+ <record model="ir.message" id="msg_bank_account_not_found">
28
+ <field name="text">Could not find bank account "%(account)s" for party "%(parties)s".</field>
29
+ <field name="text_plural">Could not find bank account "%(account)s" for any of the parties "%(parties)s".</field>
30
+ </record>
27
31
  </data>
28
32
  </tryton>
@@ -84,7 +84,7 @@ this repository contains the full copyright notices and license terms. -->
84
84
  <py:def function="TaxCategory(tax)">
85
85
  <cbc:ID py:if="tax.unece_category_code">${tax.unece_category_code}</cbc:ID>
86
86
  <cbc:Percent py:if="tax.type == 'percentage'">${format((tax.rate * 100).normalize(), 'f')}</cbc:Percent>
87
- <cbc:TaxExemptionReasonCode py:if="getattr(tax, 'vatex_code', None)">${tax.vatex_code}</cbc:TaxExemptionReasonCode>
87
+ <cbc:TaxExemptionReasonCode py:if="hasattr(tax, 'vatex_code') and tax.vatex_code">${tax.vatex_code}</cbc:TaxExemptionReasonCode>
88
88
  <cbc:TaxExemptionReason py:if="tax.legal_notice">${tax.legal_notice}</cbc:TaxExemptionReason>
89
89
  <cac:TaxScheme py:if="tax.unece_code">
90
90
  <cbc:ID>${tax.unece_code}</cbc:ID>
@@ -1,5 +1,5 @@
1
1
  [tryton]
2
- version=8.0.0
2
+ version=8.0.2
3
3
  depends:
4
4
  edocument_unece
5
5
  ir