Skip to content

Commit b5524df

Browse files
[IMP] style files using black
1 parent f2410f6 commit b5524df

17 files changed

+204
-197
lines changed

Diff for: awesome_clicker/__manifest__.py

+15-20
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,24 @@
11
# -*- coding: utf-8 -*-
22
{
3-
'name': "Awesome Clicker",
4-
5-
'summary': """
3+
"name": "Awesome Clicker",
4+
"summary": """
65
Starting module for "Master the Odoo web framework, chapter 1: Build a Clicker game"
76
""",
8-
9-
'description': """
7+
"description": """
108
Starting module for "Master the Odoo web framework, chapter 1: Build a Clicker game"
119
""",
12-
13-
'author': "Odoo",
14-
'website': "https://www.odoo.com/",
15-
'category': 'Tutorials/AwesomeClicker',
16-
'version': '0.1',
17-
'application': True,
18-
'installable': True,
19-
'depends': ['base', 'web'],
20-
21-
'data': [],
22-
'assets': {
23-
'web.assets_backend': [
24-
'awesome_clicker/static/src/**/*',
10+
"author": "Odoo",
11+
"website": "https://www.odoo.com/",
12+
"category": "Tutorials/AwesomeClicker",
13+
"version": "0.1",
14+
"application": True,
15+
"installable": True,
16+
"depends": ["base", "web"],
17+
"data": [],
18+
"assets": {
19+
"web.assets_backend": [
20+
"awesome_clicker/static/src/**/*",
2521
],
26-
2722
},
28-
'license': 'AGPL-3'
23+
"license": "AGPL-3",
2924
}

Diff for: awesome_dashboard/__manifest__.py

+16-20
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,26 @@
11
# -*- coding: utf-8 -*-
22
{
3-
'name': "Awesome Dashboard",
4-
5-
'summary': """
3+
"name": "Awesome Dashboard",
4+
"summary": """
65
Starting module for "Discover the JS framework, chapter 2: Build a dashboard"
76
""",
8-
9-
'description': """
7+
"description": """
108
Starting module for "Discover the JS framework, chapter 2: Build a dashboard"
119
""",
12-
13-
'author': "Odoo",
14-
'website': "https://www.odoo.com/",
15-
'category': 'Tutorials/AwesomeDashboard',
16-
'version': '0.1',
17-
'application': True,
18-
'installable': True,
19-
'depends': ['base', 'web', 'mail', 'crm'],
20-
21-
'data': [
22-
'views/views.xml',
10+
"author": "Odoo",
11+
"website": "https://www.odoo.com/",
12+
"category": "Tutorials/AwesomeDashboard",
13+
"version": "0.1",
14+
"application": True,
15+
"installable": True,
16+
"depends": ["base", "web", "mail", "crm"],
17+
"data": [
18+
"views/views.xml",
2319
],
24-
'assets': {
25-
'web.assets_backend': [
26-
'awesome_dashboard/static/src/**/*',
20+
"assets": {
21+
"web.assets_backend": [
22+
"awesome_dashboard/static/src/**/*",
2723
],
2824
},
29-
'license': 'AGPL-3'
25+
"license": "AGPL-3",
3026
}

Diff for: awesome_dashboard/controllers/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# -*- coding: utf-8 -*-
22

3-
from . import controllers
3+
from . import controllers

Diff for: awesome_dashboard/controllers/controllers.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88

99
logger = logging.getLogger(__name__)
1010

11+
1112
class AwesomeDashboard(http.Controller):
12-
@http.route('/awesome_dashboard/statistics', type='json', auth='user')
13+
@http.route("/awesome_dashboard/statistics", type="json", auth="user")
1314
def get_statistics(self):
1415
"""
1516
Returns a dict of statistics about the orders:
@@ -22,15 +23,14 @@ def get_statistics(self):
2223
"""
2324

2425
return {
25-
'average_quantity': random.randint(4, 12),
26-
'average_time': random.randint(4, 123),
27-
'nb_cancelled_orders': random.randint(0, 50),
28-
'nb_new_orders': random.randint(10, 200),
29-
'orders_by_size': {
30-
'm': random.randint(0, 150),
31-
's': random.randint(0, 150),
32-
'xl': random.randint(0, 150),
26+
"average_quantity": random.randint(4, 12),
27+
"average_time": random.randint(4, 123),
28+
"nb_cancelled_orders": random.randint(0, 50),
29+
"nb_new_orders": random.randint(10, 200),
30+
"orders_by_size": {
31+
"m": random.randint(0, 150),
32+
"s": random.randint(0, 150),
33+
"xl": random.randint(0, 150),
3334
},
34-
'total_amount': random.randint(100, 1000)
35+
"total_amount": random.randint(100, 1000),
3536
}
36-

Diff for: awesome_gallery/__manifest__.py

+14-16
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
# -*- coding: utf-8 -*-
22
{
3-
'name': "Gallery View",
4-
'summary': """
3+
"name": "Gallery View",
4+
"summary": """
55
Starting module for "Master the Odoo web framework, chapter 3: Create a Gallery View"
66
""",
7-
8-
'description': """
7+
"description": """
98
Starting module for "Master the Odoo web framework, chapter 3: Create a Gallery View"
109
""",
11-
12-
'version': '0.1',
13-
'application': True,
14-
'category': 'Tutorials/AwesomeGallery',
15-
'installable': True,
16-
'depends': ['web', 'contacts'],
17-
'data': [
18-
'views/views.xml',
10+
"version": "0.1",
11+
"application": True,
12+
"category": "Tutorials/AwesomeGallery",
13+
"installable": True,
14+
"depends": ["web", "contacts"],
15+
"data": [
16+
"views/views.xml",
1917
],
20-
'assets': {
21-
'web.assets_backend': [
22-
'awesome_gallery/static/src/**/*',
18+
"assets": {
19+
"web.assets_backend": [
20+
"awesome_gallery/static/src/**/*",
2321
],
2422
},
25-
'license': 'AGPL-3'
23+
"license": "AGPL-3",
2624
}

Diff for: awesome_gallery/models/ir_action.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44

55
class ActWindowView(models.Model):
6-
_inherit = 'ir.actions.act_window.view'
6+
_inherit = "ir.actions.act_window.view"
77

8-
view_mode = fields.Selection(selection_add=[
9-
('gallery', "Awesome Gallery")
10-
], ondelete={'gallery': 'cascade'})
8+
view_mode = fields.Selection(
9+
selection_add=[("gallery", "Awesome Gallery")], ondelete={"gallery": "cascade"}
10+
)

Diff for: awesome_gallery/models/ir_ui_view.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44

55
class View(models.Model):
6-
_inherit = 'ir.ui.view'
6+
_inherit = "ir.ui.view"
77

8-
type = fields.Selection(selection_add=[('gallery', "Awesome Gallery")])
8+
type = fields.Selection(selection_add=[("gallery", "Awesome Gallery")])

Diff for: awesome_kanban/__manifest__.py

+14-16
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
# -*- coding: utf-8 -*-
22
{
3-
'name': "Awesome Kanban",
4-
'summary': """
3+
"name": "Awesome Kanban",
4+
"summary": """
55
Starting module for "Master the Odoo web framework, chapter 4: Customize a kanban view"
66
""",
7-
8-
'description': """
7+
"description": """
98
Starting module for "Master the Odoo web framework, chapter 4: Customize a kanban view.
109
""",
11-
12-
'version': '0.1',
13-
'application': True,
14-
'category': 'Tutorials/AwesomeKanban',
15-
'installable': True,
16-
'depends': ['web', 'crm'],
17-
'data': [
18-
'views/views.xml',
10+
"version": "0.1",
11+
"application": True,
12+
"category": "Tutorials/AwesomeKanban",
13+
"installable": True,
14+
"depends": ["web", "crm"],
15+
"data": [
16+
"views/views.xml",
1917
],
20-
'assets': {
21-
'web.assets_backend': [
22-
'awesome_kanban/static/src/**/*',
18+
"assets": {
19+
"web.assets_backend": [
20+
"awesome_kanban/static/src/**/*",
2321
],
2422
},
25-
'license': 'AGPL-3'
23+
"license": "AGPL-3",
2624
}

Diff for: awesome_owl/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# -*- coding: utf-8 -*-
22

3-
from . import controllers
3+
from . import controllers

Diff for: awesome_owl/__manifest__.py

+23-28
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,37 @@
11
# -*- coding: utf-8 -*-
22
{
3-
'name': "Awesome Owl",
4-
5-
'summary': """
3+
"name": "Awesome Owl",
4+
"summary": """
65
Starting module for "Discover the JS framework, chapter 1: Owl components"
76
""",
8-
9-
'description': """
7+
"description": """
108
Starting module for "Discover the JS framework, chapter 1: Owl components"
119
""",
12-
13-
'author': "Odoo",
14-
'website': "https://www.odoo.com",
15-
10+
"author": "Odoo",
11+
"website": "https://www.odoo.com",
1612
# Categories can be used to filter modules in modules listing
1713
# Check https://github.com/odoo/odoo/blob/15.0/odoo/addons/base/data/ir_module_category_data.xml
1814
# for the full list
19-
'category': 'Tutorials/AwesomeOwl',
20-
'version': '0.1',
21-
15+
"category": "Tutorials/AwesomeOwl",
16+
"version": "0.1",
2217
# any module necessary for this one to work correctly
23-
'depends': ['base', 'web'],
24-
'application': True,
25-
'installable': True,
26-
'data': [
27-
'views/templates.xml',
18+
"depends": ["base", "web"],
19+
"application": True,
20+
"installable": True,
21+
"data": [
22+
"views/templates.xml",
2823
],
29-
'assets': {
30-
'awesome_owl.assets_playground': [
31-
('include', 'web._assets_helpers'),
32-
'web/static/src/scss/pre_variables.scss',
33-
'web/static/lib/bootstrap/scss/_variables.scss',
34-
'web/static/lib/bootstrap/scss/_maps.scss',
35-
('include', 'web._assets_bootstrap'),
36-
('include', 'web._assets_core'),
37-
'web/static/src/libs/fontawesome/css/font-awesome.css',
38-
'awesome_owl/static/src/**/*',
24+
"assets": {
25+
"awesome_owl.assets_playground": [
26+
("include", "web._assets_helpers"),
27+
"web/static/src/scss/pre_variables.scss",
28+
"web/static/lib/bootstrap/scss/_variables.scss",
29+
"web/static/lib/bootstrap/scss/_maps.scss",
30+
("include", "web._assets_bootstrap"),
31+
("include", "web._assets_core"),
32+
"web/static/src/libs/fontawesome/css/font-awesome.css",
33+
"awesome_owl/static/src/**/*",
3934
],
4035
},
41-
'license': 'AGPL-3'
36+
"license": "AGPL-3",
4237
}

Diff for: awesome_owl/controllers/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# -*- coding: utf-8 -*-
22

3-
from . import controllers
3+
from . import controllers

Diff for: awesome_owl/controllers/controllers.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
from odoo import http
22
from odoo.http import request, route
33

4+
45
class OwlPlayground(http.Controller):
5-
@http.route(['/awesome_owl'], type='http', auth='public')
6+
@http.route(["/awesome_owl"], type="http", auth="public")
67
def show_playground(self):
78
"""
89
Renders the owl playground page
910
"""
10-
return request.render('awesome_owl.playground')
11+
return request.render("awesome_owl.playground")

Diff for: estate/__manifest__.py

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2-
'name': 'Real Estate',
3-
'version': '1.0',
4-
'author': 'Abdelrhman Fawzy',
5-
'category': 'Services/Real Estate',
6-
'summary': 'Manage real estate properties, offers, and advertisements.',
7-
'license': 'LGPL-3',
8-
'application': True,
9-
'installable': True,
10-
'auto_install': False,
11-
'data': [
12-
'security/ir.model.access.csv',
13-
'views/estate_property_views.xml',
14-
'views/estate_property_type_views.xml',
15-
'views/estate_property_tag_views.xml',
16-
'views/estate_property_offer_views.xml',
17-
'views/estate_menues.xml'
2+
"name": "Real Estate",
3+
"version": "1.0",
4+
"author": "Abdelrhman Fawzy",
5+
"category": "Services/Real Estate",
6+
"summary": "Manage real estate properties, offers, and advertisements.",
7+
"license": "LGPL-3",
8+
"application": True,
9+
"installable": True,
10+
"auto_install": False,
11+
"data": [
12+
"security/ir.model.access.csv",
13+
"views/estate_property_views.xml",
14+
"views/estate_property_type_views.xml",
15+
"views/estate_property_tag_views.xml",
16+
"views/estate_property_offer_views.xml",
17+
"views/estate_menues.xml",
1818
],
19-
'description': "This module allows you to manage real estate properties, property types, tags, offers, and advertisements. It also includes tools for organizing and displaying data effectively."
19+
"description": "This module allows you to manage real estate properties, property types, tags, offers, and advertisements. It also includes tools for organizing and displaying data effectively.",
2020
}

0 commit comments

Comments
 (0)