Skip to content

Commit 70fa8d0

Browse files
committed
[IMP] bacula2_*: pre-commit fixes before
1 parent a4f7107 commit 70fa8d0

8 files changed

Lines changed: 13 additions & 9 deletions

File tree

bacula2_crm/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": """CRM modifications for Bacula Systems""",
3-
"version": "16.0.0.2.0",
3+
"version": "19.0.0.2.0",
44
"author": "IT-Projects LLC, Eugene Molotov",
55
"support": "it@it-projects.info",
66
"website": "https://github.com/it-projects-llc/bacula-addons",

bacula2_crm/models/crm_lead.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from odoo import _, fields, models
1+
from odoo import fields, models
22
from odoo.exceptions import UserError
33

44

@@ -9,5 +9,7 @@ class Lead(models.Model):
99

1010
def _create_customer(self):
1111
if not self.partner_name:
12-
raise UserError(_("Creating customer without company is not allowed"))
12+
raise UserError(
13+
self.env._("Creating customer without company is not allowed")
14+
)
1315
return super()._create_customer()

bacula2_hr_contract/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": """Employee Contracts modifications for Bacula Systems""",
3-
"version": "16.0.0.1.0",
3+
"version": "19.0.0.1.0",
44
"author": "IT-Projects LLC, Eugene Molotov",
55
"support": "it@it-projects.info",
66
"website": "https://github.com/it-projects-llc/bacula-addons",

bacula2_hr_holidays/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": """Time Off modifications for Bacula Systems""",
3-
"version": "16.0.0.1.0",
3+
"version": "19.0.0.1.0",
44
"author": "IT-Projects LLC, Eugene Molotov",
55
"support": "it@it-projects.info",
66
"website": "https://github.com/it-projects-llc/bacula-addons",

bacula2_reports/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": """Reports""",
3-
"version": "16.0.0.1.0",
3+
"version": "19.0.0.1.0",
44
"author": "IT-Projects LLC, Eugene Molotov",
55
"support": "it@it-projects.info",
66
"website": "https://github.com/it-projects-llc/bacula-addons",

bacula2_reports/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
def prepare_pipeline_chart(stages, values, title, descriptions):
3131
# Calculate percentages
3232
percentages = [
33-
f"{(value/values[0]*100 if values[0] else 0):.1f}%" for value in values
33+
f"{(value / values[0] * 100 if values[0] else 0):.1f}%" for value in values
3434
]
3535

3636
# Calculate the coordinates for the funnel segments

bacula2_reports/wizard/sale_report2.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ def _default_challenge(self):
4646
)
4747
period_end = fields.Date(default=lambda self: fields.Date.today())
4848
challenge = fields.Many2one(
49-
"gamification.challenge", required=True, default=_default_challenge
49+
"gamification.challenge",
50+
required=True,
51+
default=lambda self: self._default_challenge(),
5052
)
5153

5254
currency_id = fields.Many2one("res.currency", related="company.currency_id")

bacula2_sale/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": """Sales modifications for Bacula Systems""",
3-
"version": "16.0.0.1.0",
3+
"version": "19.0.0.1.0",
44
"author": "IT-Projects LLC, Eugene Molotov",
55
"support": "it@it-projects.info",
66
"website": "https://github.com/it-projects-llc/bacula-addons",

0 commit comments

Comments
 (0)