Skip to content

Commit 2d603e7

Browse files
authored
Merge pull request #82 from onesteinbv/16.0-add-l10n_de_skr49
Added l10n_de_skr49 module
2 parents 5c09bc6 + 6b00915 commit 2d603e7

File tree

12 files changed

+12943
-17
lines changed

12 files changed

+12943
-17
lines changed

currency_rate_update_coingecko/models/res_currency_rate_provider_CoinGecko.py

+9-7
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def _get_historical_rate_from_coingecko(self, date_from, date_to, base_currency)
4646
while current_date <= date_to:
4747
content[current_date] = {}
4848
for (
49-
currency
49+
currency
5050
) in self.currency_ids.res_currency_rate_provider_mapping_ids.filtered(
5151
lambda rpm: rpm.provider_service == self.service
5252
):
@@ -68,11 +68,11 @@ def _get_historical_rate_from_coingecko(self, date_from, date_to, base_currency)
6868
body=_(
6969
'Currency Rate Provider "%(name)s" failed to obtain data(check the rate provider mapping on the currency) :\n%(error)s'
7070
)
71-
% {
72-
"name": self.name,
73-
"currency": currency.currency_id.name,
74-
"error": str(e) if e else _("N/A"),
75-
},
71+
% {
72+
"name": self.name,
73+
"currency": currency.currency_id.name,
74+
"error": str(e) if e else _("N/A"),
75+
},
7676
)
7777
continue
7878
if coin_data:
@@ -82,6 +82,8 @@ def _get_historical_rate_from_coingecko(self, date_from, date_to, base_currency)
8282
.get(base_currency.lower(), 0)
8383
)
8484
if rate:
85-
content[current_date].update({currency.currency_id.name: 1 / rate})
85+
content[current_date].update(
86+
{currency.currency_id.name: 1 / rate}
87+
)
8688
current_date += timedelta(days=1)
8789
return content

helpdesk_mgmt_fetchmail_multicompany/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"license": "AGPL-3",
88
"category": "After-Sales",
99
"author": "Onestein BV",
10-
"website": "https://www.onestein.eu",
10+
"website": "https://www.onestein.nl",
1111
"depends": ["helpdesk_mgmt"],
1212
"data": [
1313
"security/mail_security.xml",
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
22

3-
from . import helpdesk_ticket
3+
from . import helpdesk_ticket
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
22

3-
from odoo import api, fields, models
3+
from odoo import fields, models
44

55

66
class HelpdeskTicket(models.Model):
77
_inherit = "helpdesk.ticket"
88

9-
priority = fields.Selection(selection_add=[('0', ''),
10-
('1', 'Low'),
11-
('2', 'Medium'),
12-
('3', 'High'),
13-
('4', 'Critical'),
14-
('5', 'Blocker'),
15-
], default="0", string="Priority")
9+
priority = fields.Selection(
10+
selection_add=[
11+
("0", ""),
12+
("1", "Low"),
13+
("2", "Medium"),
14+
("3", "High"),
15+
("4", "Critical"),
16+
("5", "Blocker"),
17+
],
18+
default="0",
19+
string="Priority",
20+
)

l10n_de_skr49/__init__.py

Whitespace-only changes.

l10n_de_skr49/__manifest__.py

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "Deutschland SKR49 - Accounting",
3+
"version": "16.0.1.0.0",
4+
"author": "humanilog",
5+
"website": "https://www.onestein.nl",
6+
"category": "Localization",
7+
"description": """
8+
Dieses Modul beinhaltet einen deutschen Kontenrahmen basierend auf dem SKR49.
9+
=========================================================================================
10+
11+
German accounting chart and localization for the SKR49.
12+
""",
13+
"depends": ["l10n_de"],
14+
"license": "LGPL-3",
15+
"data": [
16+
"data/account_data.xml",
17+
"data/account_account_tags_data.xml",
18+
"data/l10n_de_skr49_chart_data.xml",
19+
"data/account_chart.xml",
20+
"data/account_tax_fiscal_position.xml",
21+
"data/account_chart_template_data.xml",
22+
],
23+
"installable": True,
24+
"auto_install": True,
25+
}

0 commit comments

Comments
 (0)