Skip to content

Commit

Permalink
[IMP] l10n_it_fiscalcode: black, isort, prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
victoralmau committed Jan 5, 2021
1 parent 6fbe4d7 commit 68f53dc
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 19 deletions.
6 changes: 2 additions & 4 deletions l10n_it_fiscalcode/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

{
"name": "ITA - Codice fiscale",
"version": "14.0.1.0.1",
"version": "13.0.1.0.1",
"development_status": "Production/Stable",
"category": "Localization/Italy",
"author": "Link IT s.r.l., "
Expand All @@ -16,9 +16,7 @@
"website": "https://github.com/OCA/l10n-italy",
"license": "AGPL-3",
"depends": ["base_vat"],
"external_dependencies": {
"python": ["codicefiscale"],
},
"external_dependencies": {"python": ["codicefiscale"]},
"data": [
"security/ir.model.access.csv",
"data/res.city.it.code.csv",
Expand Down
18 changes: 3 additions & 15 deletions l10n_it_fiscalcode/tests/test_fiscalcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,14 @@ def test_fiscalcode_check(self):
# Wrong FC
with self.assertRaises(ValidationError):
self.env["res.partner"].create(
{
"name": "Person",
"is_company": False,
"fiscalcode": "123",
}
{"name": "Person", "is_company": False, "fiscalcode": "123"}
)
# Correct FC
self.env["res.partner"].create(
{
"name": "Person",
"is_company": False,
"fiscalcode": "RSSMRA84H04H501X",
}
{"name": "Person", "is_company": False, "fiscalcode": "RSSMRA84H04H501X"}
)
# Empty FC
self.env["res.partner"].create(
{
"name": "Person",
}
)
self.env["res.partner"].create({"name": "Person"})
# FC is VAT number
self.env["res.partner"].create(
{
Expand Down
2 changes: 2 additions & 0 deletions setup/.setuptools-odoo-make-default-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# addons listed in this file are ignored by
# setuptools-odoo-make-default (one addon per line)
2 changes: 2 additions & 0 deletions setup/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
To learn more about this directory, please visit
https://pypi.python.org/pypi/setuptools-odoo
1 change: 1 addition & 0 deletions setup/l10n_it_fiscalcode/odoo/addons/l10n_it_fiscalcode
6 changes: 6 additions & 0 deletions setup/l10n_it_fiscalcode/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit 68f53dc

Please sign in to comment.