trytond-edocument-ubl 7.8.6__tar.gz → 7.8.7__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 (86) hide show
  1. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/CHANGELOG +5 -0
  2. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/PKG-INFO +1 -1
  3. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/edocument.py +6 -4
  4. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tryton.cfg +1 -1
  5. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/trytond_edocument_ubl.egg-info/PKG-INFO +1 -1
  6. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/COPYRIGHT +0 -0
  7. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/LICENSE +0 -0
  8. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/MANIFEST.in +0 -0
  9. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/README.rst +0 -0
  10. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/__init__.py +0 -0
  11. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/account.py +0 -0
  12. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/account.xml +0 -0
  13. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/doc/conf.py +0 -0
  14. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/doc/design.rst +0 -0
  15. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/doc/index.rst +0 -0
  16. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/doc/releases.rst +0 -0
  17. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/doc/requirements-doc.txt +0 -0
  18. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/document.py +0 -0
  19. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/exceptions.py +0 -0
  20. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/icons/LICENSE +0 -0
  21. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/bg.po +0 -0
  22. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/ca.po +0 -0
  23. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/cs.po +0 -0
  24. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/de.po +0 -0
  25. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/es.po +0 -0
  26. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/es_419.po +0 -0
  27. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/et.po +0 -0
  28. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/fa.po +0 -0
  29. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/fi.po +0 -0
  30. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/fr.po +0 -0
  31. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/hu.po +0 -0
  32. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/id.po +0 -0
  33. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/it.po +0 -0
  34. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/lo.po +0 -0
  35. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/lt.po +0 -0
  36. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/nl.po +0 -0
  37. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/pl.po +0 -0
  38. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/pt.po +0 -0
  39. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/ro.po +0 -0
  40. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/ru.po +0 -0
  41. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/sl.po +0 -0
  42. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/tr.po +0 -0
  43. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/uk.po +0 -0
  44. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/zh_CN.po +0 -0
  45. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/message.xml +0 -0
  46. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/party.py +0 -0
  47. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/setup.cfg +0 -0
  48. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/setup.py +0 -0
  49. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/template/2/CreditNote.xml +0 -0
  50. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/template/2/Invoice.xml +0 -0
  51. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/template/2/base.xml +0 -0
  52. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/BDNDR-CCTS_CCT_SchemaModule-1.1.xsd +0 -0
  53. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/BDNDR-UnqualifiedDataTypes-1.1.xsd +0 -0
  54. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-CommonAggregateComponents-2.4.xsd +0 -0
  55. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-CommonBasicComponents-2.4.xsd +0 -0
  56. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-CommonExtensionComponents-2.4.xsd +0 -0
  57. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-CommonSignatureComponents-2.4.xsd +0 -0
  58. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-ExtensionContentDataType-2.4.xsd +0 -0
  59. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-QualifiedDataTypes-2.4.xsd +0 -0
  60. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-SignatureAggregateComponents-2.4.xsd +0 -0
  61. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-SignatureBasicComponents-2.4.xsd +0 -0
  62. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-XAdES01903v132-201601-2.4.xsd +0 -0
  63. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-XAdES01903v141-201601-2.4.xsd +0 -0
  64. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-xmldsig-core-schema-2.4.xsd +0 -0
  65. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-xmldsig1-schema-2.4.xsd +0 -0
  66. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-xmldsig11-schema-2.4.xsd +0 -0
  67. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/maindoc/UBL-CreditNote-2.4.xsd +0 -0
  68. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/maindoc/UBL-Invoice-2.4.xsd +0 -0
  69. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/UBL-CreditNote-2.1-Example.xml +0 -0
  70. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/UBL-Invoice-2.1-Example-Trivial.xml +0 -0
  71. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/UBL-Invoice-2.1-Example.xml +0 -0
  72. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/__init__.py +0 -0
  73. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/scenario_ubl_2_credit_note_parse.json +0 -0
  74. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/scenario_ubl_2_credit_note_parse.rst +0 -0
  75. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/scenario_ubl_2_invoice_parse.json +0 -0
  76. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/scenario_ubl_2_invoice_parse.rst +0 -0
  77. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/scenario_ubl_2_invoice_parse_trivial.rst +0 -0
  78. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/test_module.py +0 -0
  79. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/test_scenario.py +0 -0
  80. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tox.ini +0 -0
  81. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/trytond_edocument_ubl.egg-info/SOURCES.txt +0 -0
  82. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/trytond_edocument_ubl.egg-info/dependency_links.txt +0 -0
  83. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/trytond_edocument_ubl.egg-info/entry_points.txt +0 -0
  84. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/trytond_edocument_ubl.egg-info/not-zip-safe +0 -0
  85. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/trytond_edocument_ubl.egg-info/requires.txt +0 -0
  86. {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/trytond_edocument_ubl.egg-info/top_level.txt +0 -0
@@ -1,4 +1,9 @@
1
1
 
2
+ Version 7.8.7 - 2026-03-18
3
+ --------------------------
4
+ * Bug fixes (see mercurial logs for details)
5
+
6
+
2
7
  Version 7.8.6 - 2026-03-02
3
8
  --------------------------
4
9
  * Bug fixes (see mercurial logs for details)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: trytond_edocument_ubl
3
- Version: 7.8.6
3
+ Version: 7.8.7
4
4
  Summary: Tryton module for electronic document UBL
5
5
  Home-page: http://www.tryton.org/
6
6
  Download-URL: http://downloads.tryton.org/7.8/
@@ -176,12 +176,14 @@ class Invoice(Model):
176
176
  @cached_property
177
177
  def sale_reference(self):
178
178
  if hasattr(self.invoice, 'sales'):
179
- return ','.join(s.reference for s in self.invoice.sales)
179
+ return ','.join(
180
+ filter(None, (s.reference for s in self.invoice.sales)))
180
181
 
181
182
  @cached_property
182
183
  def sale_number(self):
183
184
  if hasattr(self.invoice, 'sales'):
184
- return ','.join(s.number for s in self.invoice.sales)
185
+ return ','.join(
186
+ filter(None, (s.number for s in self.invoice.sales)))
185
187
 
186
188
  @property
187
189
  def taxes(self):
@@ -436,7 +438,7 @@ class Invoice(Model):
436
438
 
437
439
  line.unit_price = round_price(
438
440
  Decimal(invoice_line.findtext('./{*}LineExtensionAmount'))
439
- / Decimal(str(line.quantity)))
441
+ / Decimal(str(line.quantity or 1)))
440
442
 
441
443
  if invoice_line.find('./{*}Item/{*}ClassifiedTaxCategory') is not None:
442
444
  tax_categories = invoice_line.iterfind(
@@ -667,7 +669,7 @@ class Invoice(Model):
667
669
 
668
670
  line.unit_price = round_price(
669
671
  -Decimal(credit_note_line.findtext('./{*}LineExtensionAmount'))
670
- / Decimal(str(line.quantity)))
672
+ / Decimal(str(line.quantity or -1)))
671
673
 
672
674
  if (credit_note_line.find('./{*}Item/{*}ClassifiedTaxCategory')
673
675
  is not None):
@@ -1,5 +1,5 @@
1
1
  [tryton]
2
- version=7.8.6
2
+ version=7.8.7
3
3
  depends:
4
4
  edocument_unece
5
5
  ir
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: trytond_edocument_ubl
3
- Version: 7.8.6
3
+ Version: 7.8.7
4
4
  Summary: Tryton module for electronic document UBL
5
5
  Home-page: http://www.tryton.org/
6
6
  Download-URL: http://downloads.tryton.org/7.8/