Skip to content

Commit 36c2436

Browse files
[FIX] base_old_migration_fields, file_download, html_fields_document_layout_configuration: Pre-commit checks
1 parent 96bfdd1 commit 36c2436

File tree

6 files changed

+7
-10
lines changed

6 files changed

+7
-10
lines changed

base_old_migration_fields/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Copyright 2023 Ángel García de la Chica <[email protected]>
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

base_old_migration_fields/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"license": "AGPL-3",
1313
"application": False,
1414
"installable": True,
15-
"depends": [],
15+
"depends": ["base"],
1616
"data": [
1717
"security/base_old_migration_fields_security.xml",
1818
],

base_old_migration_fields/security/base_old_migration_fields_security.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
<!-- Copyright 2023 Ángel García de la Chica Herrera <[email protected]>
33
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
44
<odoo noupdate="1">
5-
<record
6-
id="base_old_migration_fields.group_old_migration_fields_manager"
7-
model="res.groups"
8-
>
5+
<record id="group_old_migration_fields_manager" model="res.groups">
96
<field name="name">Old Migration Fields Manager</field>
107
<field
118
name="users"

file_download/__manifest__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
"version": "15.0.1.0.0",
77
"sequence": 14,
88
"summary": "Download file",
9-
"description": """
10-
Let's you call a wizard to download any file.
11-
""",
129
"author": "Sygel",
1310
"license": "AGPL-3",
1411
"website": "https://github.com/sygel-technology/sy-server-backend",

file_download/wizard/download_file.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class FileDownloadModel(models.AbstractModel):
1212

1313
data = fields.Binary(string="File", readonly=True)
1414
name = fields.Char(string="File name", readonly=True)
15-
comments = fields.Text(string="Comments")
15+
comments = fields.Text()
1616

1717
def get_filename(self):
1818
return ""
@@ -40,6 +40,5 @@ def set_file(self):
4040
"views": [(view.id, "form")],
4141
"view_id": view.id,
4242
"view_mode": "form",
43-
"view_mode": "form",
4443
"target": "new",
4544
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Copyright 2023 Ángel García de la Chica <[email protected]>
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

0 commit comments

Comments
 (0)