Skip to content

Commit

Permalink
[IMP] datev_export: black, isort, prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinafernandez-tecnativa committed Nov 28, 2023
1 parent 7593024 commit 78fbfe8
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 17 deletions.
9 changes: 2 additions & 7 deletions datev_export/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@
"Maria Sparenberg, initOS GmbH, Odoo Community Association (OCA)",
"summary": "Export invoices and refunds as xml and pdf files zipped in DATEV format.",
"website": "https://github.com/OCA/l10n-germany",
"depends": [
"account",
"l10n_de",
],
"data": [
"views/res_config_settings_views.xml",
],
"depends": ["account", "l10n_de",],
"data": ["views/res_config_settings_views.xml",],
"installable": True,
}
8 changes: 2 additions & 6 deletions datev_export/models/res_company.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@ class ResCompany(models.Model):
_inherit = "res.company"

datev_consultant_number = fields.Char(
string="Consultant Number",
size=8,
help="Number from 1000 to 99999999",
string="Consultant Number", size=8, help="Number from 1000 to 99999999",
)

datev_client_number = fields.Char(
string="Client Number",
size=5,
help="Number from 0 to 99999",
string="Client Number", size=5, help="Number from 0 to 99999",
)
6 changes: 2 additions & 4 deletions datev_export/models/res_config_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"

datev_consultant_number = fields.Char(
related="company_id.datev_consultant_number",
readonly=False,
related="company_id.datev_consultant_number", readonly=False,
)

datev_client_number = fields.Char(
related="company_id.datev_client_number",
readonly=False,
related="company_id.datev_client_number", readonly=False,
)
1 change: 1 addition & 0 deletions setup/datev_export/odoo/addons/datev_export
6 changes: 6 additions & 0 deletions setup/datev_export/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 78fbfe8

Please sign in to comment.