trytond-edocument-ubl 7.8.0__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.
Files changed (53) hide show
  1. trytond/modules/edocument_ubl/__init__.py +2 -0
  2. trytond/modules/edocument_ubl/account.py +22 -0
  3. trytond/modules/edocument_ubl/account.xml +10 -0
  4. trytond/modules/edocument_ubl/document.py +19 -0
  5. trytond/modules/edocument_ubl/edocument.py +1058 -0
  6. trytond/modules/edocument_ubl/exceptions.py +8 -0
  7. trytond/modules/edocument_ubl/locale/bg.po +63 -0
  8. trytond/modules/edocument_ubl/locale/ca.po +72 -0
  9. trytond/modules/edocument_ubl/locale/cs.po +63 -0
  10. trytond/modules/edocument_ubl/locale/de.po +71 -0
  11. trytond/modules/edocument_ubl/locale/es.po +72 -0
  12. trytond/modules/edocument_ubl/locale/es_419.po +63 -0
  13. trytond/modules/edocument_ubl/locale/et.po +63 -0
  14. trytond/modules/edocument_ubl/locale/fa.po +63 -0
  15. trytond/modules/edocument_ubl/locale/fi.po +63 -0
  16. trytond/modules/edocument_ubl/locale/fr.po +72 -0
  17. trytond/modules/edocument_ubl/locale/hu.po +63 -0
  18. trytond/modules/edocument_ubl/locale/id.po +63 -0
  19. trytond/modules/edocument_ubl/locale/it.po +63 -0
  20. trytond/modules/edocument_ubl/locale/lo.po +63 -0
  21. trytond/modules/edocument_ubl/locale/lt.po +63 -0
  22. trytond/modules/edocument_ubl/locale/nl.po +72 -0
  23. trytond/modules/edocument_ubl/locale/pl.po +63 -0
  24. trytond/modules/edocument_ubl/locale/pt.po +63 -0
  25. trytond/modules/edocument_ubl/locale/ro.po +63 -0
  26. trytond/modules/edocument_ubl/locale/ru.po +63 -0
  27. trytond/modules/edocument_ubl/locale/sl.po +63 -0
  28. trytond/modules/edocument_ubl/locale/tr.po +63 -0
  29. trytond/modules/edocument_ubl/locale/uk.po +63 -0
  30. trytond/modules/edocument_ubl/locale/zh_CN.po +63 -0
  31. trytond/modules/edocument_ubl/message.xml +33 -0
  32. trytond/modules/edocument_ubl/party.py +114 -0
  33. trytond/modules/edocument_ubl/template/2/CreditNote.xml +110 -0
  34. trytond/modules/edocument_ubl/template/2/Invoice.xml +110 -0
  35. trytond/modules/edocument_ubl/template/2/base.xml +64 -0
  36. trytond/modules/edocument_ubl/tests/UBL-CreditNote-2.1-Example.xml +409 -0
  37. trytond/modules/edocument_ubl/tests/UBL-Invoice-2.1-Example-Trivial.xml +39 -0
  38. trytond/modules/edocument_ubl/tests/UBL-Invoice-2.1-Example.xml +470 -0
  39. trytond/modules/edocument_ubl/tests/__init__.py +2 -0
  40. trytond/modules/edocument_ubl/tests/scenario_ubl_2_credit_note_parse.json +4 -0
  41. trytond/modules/edocument_ubl/tests/scenario_ubl_2_credit_note_parse.rst +90 -0
  42. trytond/modules/edocument_ubl/tests/scenario_ubl_2_invoice_parse.json +4 -0
  43. trytond/modules/edocument_ubl/tests/scenario_ubl_2_invoice_parse.rst +90 -0
  44. trytond/modules/edocument_ubl/tests/scenario_ubl_2_invoice_parse_trivial.rst +56 -0
  45. trytond/modules/edocument_ubl/tests/test_module.py +234 -0
  46. trytond/modules/edocument_ubl/tests/test_scenario.py +8 -0
  47. trytond/modules/edocument_ubl/tryton.cfg +32 -0
  48. trytond_edocument_ubl-7.8.0.dist-info/METADATA +86 -0
  49. trytond_edocument_ubl-7.8.0.dist-info/RECORD +53 -0
  50. trytond_edocument_ubl-7.8.0.dist-info/WHEEL +5 -0
  51. trytond_edocument_ubl-7.8.0.dist-info/entry_points.txt +2 -0
  52. trytond_edocument_ubl-7.8.0.dist-info/licenses/LICENSE +674 -0
  53. trytond_edocument_ubl-7.8.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,2 @@
1
+ # This file is part of Tryton. The COPYRIGHT file at the top level of
2
+ # this repository contains the full copyright notices and license terms.
@@ -0,0 +1,22 @@
1
+ # This file is part of Tryton. The COPYRIGHT file at the top level of
2
+ # this repository contains the full copyright notices and license terms.
3
+
4
+ from trytond.model import fields
5
+ from trytond.pool import PoolMeta
6
+
7
+
8
+ class InvoiceEdocumentStart(metaclass=PoolMeta):
9
+ __name__ = 'account.invoice.edocument.start'
10
+
11
+ @classmethod
12
+ def __setup__(cls):
13
+ super().__setup__()
14
+ cls.format.selection.append(
15
+ ('edocument.ubl.invoice', "UBL"))
16
+
17
+ @fields.depends('format')
18
+ def get_templates(self):
19
+ templates = super().get_templates()
20
+ if self.format == 'edocument.ubl.invoice':
21
+ templates.append(('2', '2'))
22
+ return templates
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0"?>
2
+ <!-- This file is part of Tryton. The COPYRIGHT file at the top level of
3
+ this repository contains the full copyright notices and license terms. -->
4
+ <tryton>
5
+ <data depends="account_invoice">
6
+ <record model="ir.action.wizard" id="account_invoice.edocument">
7
+ <field name="active" eval="True"/>
8
+ </record>
9
+ </data>
10
+ </tryton>
@@ -0,0 +1,19 @@
1
+ # This file is part of Tryton. The COPYRIGHT file at the top level of
2
+ # this repository contains the full copyright notices and license terms.
3
+
4
+ from trytond.pool import Pool, PoolMeta
5
+
6
+
7
+ class Incoming(metaclass=PoolMeta):
8
+ __name__ = 'document.incoming'
9
+
10
+ @classmethod
11
+ def __setup__(cls):
12
+ super().__setup__()
13
+ cls.type.selection.append(
14
+ ('ubl_invoice', "UBL Invoice/Credit Note"))
15
+
16
+ def _process_ubl_invoice(self):
17
+ pool = Pool()
18
+ Invoice = pool.get('edocument.ubl.invoice')
19
+ return Invoice.parse(self.data)