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.
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/CHANGELOG +5 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/PKG-INFO +1 -1
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/edocument.py +6 -4
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tryton.cfg +1 -1
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/trytond_edocument_ubl.egg-info/PKG-INFO +1 -1
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/COPYRIGHT +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/LICENSE +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/MANIFEST.in +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/README.rst +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/__init__.py +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/account.py +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/account.xml +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/doc/conf.py +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/doc/design.rst +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/doc/index.rst +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/doc/releases.rst +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/doc/requirements-doc.txt +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/document.py +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/exceptions.py +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/icons/LICENSE +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/bg.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/ca.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/cs.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/de.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/es.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/es_419.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/et.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/fa.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/fi.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/fr.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/hu.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/id.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/it.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/lo.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/lt.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/nl.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/pl.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/pt.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/ro.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/ru.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/sl.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/tr.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/uk.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/locale/zh_CN.po +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/message.xml +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/party.py +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/setup.cfg +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/setup.py +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/template/2/CreditNote.xml +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/template/2/Invoice.xml +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/template/2/base.xml +0 -0
- {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
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/BDNDR-UnqualifiedDataTypes-1.1.xsd +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-CommonAggregateComponents-2.4.xsd +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-CommonBasicComponents-2.4.xsd +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-CommonExtensionComponents-2.4.xsd +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-CommonSignatureComponents-2.4.xsd +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-ExtensionContentDataType-2.4.xsd +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-QualifiedDataTypes-2.4.xsd +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-SignatureAggregateComponents-2.4.xsd +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-SignatureBasicComponents-2.4.xsd +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-XAdES01903v132-201601-2.4.xsd +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-XAdES01903v141-201601-2.4.xsd +0 -0
- {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
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-xmldsig1-schema-2.4.xsd +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/common/UBL-xmldsig11-schema-2.4.xsd +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/maindoc/UBL-CreditNote-2.4.xsd +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/maindoc/UBL-Invoice-2.4.xsd +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/UBL-CreditNote-2.1-Example.xml +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/UBL-Invoice-2.1-Example-Trivial.xml +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/UBL-Invoice-2.1-Example.xml +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/__init__.py +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/scenario_ubl_2_credit_note_parse.json +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/scenario_ubl_2_credit_note_parse.rst +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/scenario_ubl_2_invoice_parse.json +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/scenario_ubl_2_invoice_parse.rst +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/scenario_ubl_2_invoice_parse_trivial.rst +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/test_module.py +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/test_scenario.py +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tox.ini +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/trytond_edocument_ubl.egg-info/SOURCES.txt +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/trytond_edocument_ubl.egg-info/dependency_links.txt +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/trytond_edocument_ubl.egg-info/entry_points.txt +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/trytond_edocument_ubl.egg-info/not-zip-safe +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/trytond_edocument_ubl.egg-info/requires.txt +0 -0
- {trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/trytond_edocument_ubl.egg-info/top_level.txt +0 -0
|
@@ -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(
|
|
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(
|
|
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):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/maindoc/UBL-CreditNote-2.4.xsd
RENAMED
|
File without changes
|
{trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/2.4/maindoc/UBL-Invoice-2.4.xsd
RENAMED
|
File without changes
|
{trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/UBL-CreditNote-2.1-Example.xml
RENAMED
|
File without changes
|
|
File without changes
|
{trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/UBL-Invoice-2.1-Example.xml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/scenario_ubl_2_invoice_parse.json
RENAMED
|
File without changes
|
{trytond_edocument_ubl-7.8.6 → trytond_edocument_ubl-7.8.7}/tests/scenario_ubl_2_invoice_parse.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|