Skip to content

Commit

Permalink
[IMP] l10n_it_fatturapa: black, isort, prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMule71 committed Apr 30, 2021
1 parent e4d2114 commit 17b6c9f
Show file tree
Hide file tree
Showing 23 changed files with 16,941 additions and 5,926 deletions.
8 changes: 7 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ exclude: |
# Repos using Sphinx to generate docs don't need prettying
^docs/_templates/.*\.html$|
# You don't usually want a bot to modify your legal texts
(LICENSE.*|COPYING.*)
(LICENSE.*|COPYING.*)|
# official goverment specs
(l10n_it_fatturapa/bindings/xsd)|
# external stylesheets
(l10n_it_fatturapa/data/fatturaordinaria_v1.2.1.xsl)|
(l10n_it_fatturapa/data/FoglioStileAssoSoftware_v1.1.xsl)
default_language_version:
python: python3
node: "14.13.0"
Expand Down
74 changes: 35 additions & 39 deletions l10n_it_fatturapa/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,46 +5,42 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
'name': 'ITA - Fattura elettronica - Base',
'version': '12.0.2.1.1',
'category': 'Localization/Italy',
'summary': 'Fatture elettroniche',
'author': 'Davide Corio, Agile Business Group, Innoviu, '
'Odoo Italia Network, Odoo Community Association (OCA)',
'website': 'https://github.com/OCA/l10n-italy/tree/12.0/'
'l10n_it_fatturapa',
'license': 'AGPL-3',
'excludes': ['l10n_it_edi'],
"name": "ITA - Fattura elettronica - Base",
"version": "12.0.2.1.1",
"category": "Localization/Italy",
"summary": "Fatture elettroniche",
"author": "Davide Corio, Agile Business Group, Innoviu, "
"Odoo Italia Network, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-italy" "l10n_it_fatturapa",
"license": "AGPL-3",
"excludes": ["l10n_it_edi"],
"depends": [
'l10n_it_account',
'l10n_it_fiscalcode',
'document',
'l10n_it_ipa',
'l10n_it_rea',
'base_iban',
'l10n_it_account_tax_kind',
'l10n_it_esigibilita_iva',
'l10n_it_fiscal_payment_term',
'l10n_it_split_payment',
'l10n_it_fiscal_document_type',
'partner_firstname',
],
"l10n_it_account",
"l10n_it_fiscalcode",
"document",
"l10n_it_ipa",
"l10n_it_rea",
"base_iban",
"l10n_it_account_tax_kind",
"l10n_it_esigibilita_iva",
"l10n_it_fiscal_payment_term",
"l10n_it_split_payment",
"l10n_it_fiscal_document_type",
"partner_firstname",
],
"data": [
'data/fatturapa_data.xml',
'data/welfare.fund.type.csv',
'views/account_view.xml',
'views/company_view.xml',
'views/partner_view.xml',
'views/invoice_view.xml',
'views/related_document_type_views.xml',
'security/ir.model.access.csv',
"data/fatturapa_data.xml",
"data/welfare.fund.type.csv",
"views/account_view.xml",
"views/company_view.xml",
"views/partner_view.xml",
"views/invoice_view.xml",
"views/related_document_type_views.xml",
"security/ir.model.access.csv",
],
"demo": ['demo/account_invoice_fatturapa.xml'],
'installable': True,
'external_dependencies': {
'python': [
'pyxb', # pyxb 1.2.6
'asn1crypto'
],
}
"demo": ["demo/account_invoice_fatturapa.xml"],
"installable": True,
"external_dependencies": {
"python": ["pyxb", "asn1crypto"], # pyxb 1.2.6
},
}
15 changes: 7 additions & 8 deletions l10n_it_fatturapa/bindings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@

## Istruzioni per generazione nuovi bindings

* Scaricare il relativo xsd in locale o copiare il file che si trova nella cartella xsd
* Generare i bindings utilizzando: `pyxbgen <link>`
* sostituire nei file diff il _GenerationUID con quello creato da pyxbgen
* in cima ai files generati sostiture le righe:
- Scaricare il relativo xsd in locale o copiare il file che si trova nella cartella xsd
- Generare i bindings utilizzando: `pyxbgen <link>`
- sostituire nei file diff il \_GenerationUID con quello creato da pyxbgen
- in cima ai files generati sostiture le righe:
```
# ./_ds.py
# -*- coding: utf-8 -*-
```
con la sequente riga:
`# flake8: noqa`
* sostituire i files precedentemente creati `_ds.py` e `binding.py`
* applicare le seguenti modifiche che si trovano nei files `bindings.diff` e `_ds.diff`
con la sequente riga: `# flake8: noqa`
- sostituire i files precedentemente creati `_ds.py` e `binding.py`
- applicare le seguenti modifiche che si trovano nei files `bindings.diff` e `_ds.diff`
2 changes: 1 addition & 1 deletion l10n_it_fatturapa/bindings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
try:
from . import fatturapa # noqa: F401
except pyxb.PyXBVersionError as e:
_logger.warning('%s: %s' % (e.__class__.__name__, e))
_logger.warning("{}: {}".format(e.__class__.__name__, e))
Loading

0 comments on commit 17b6c9f

Please sign in to comment.