Skip to content

Commit 39c6702

Browse files
author
joyep
committed
[REFINE] awesome modules: remove unnecessary UTF-8 encoding declarations
1 parent a25d65c commit 39c6702

File tree

16 files changed

+21
-42
lines changed

16 files changed

+21
-42
lines changed

awesome_clicker/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
# -*- coding: utf-8 -*-

awesome_clicker/__manifest__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
{
32
'name': "Awesome Clicker",
43

awesome_dashboard/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
# -*- coding: utf-8 -*-
2-
3-
from . import controllers
1+
from . import controllers as controllers

awesome_dashboard/__manifest__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
{
32
'name': "Awesome Dashboard",
43

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
# -*- coding: utf-8 -*-
2-
3-
from . import controllers
1+
from . import controllers as controllers
Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
# -*- coding: utf-8 -*-
2-
31
import logging
42
import random
53

64
from odoo import http
7-
from odoo.http import request
85

96
logger = logging.getLogger(__name__)
107

8+
119
class AwesomeDashboard(http.Controller):
12-
@http.route('/awesome_dashboard/statistics', type='json', auth='user')
10+
@http.route("/awesome_dashboard/statistics", type="json", auth="user")
1311
def get_statistics(self):
1412
"""
1513
Returns a dict of statistics about the orders:
@@ -22,15 +20,14 @@ def get_statistics(self):
2220
"""
2321

2422
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),
23+
"average_quantity": random.randint(4, 12),
24+
"average_time": random.randint(4, 123),
25+
"nb_cancelled_orders": random.randint(0, 50),
26+
"nb_new_orders": random.randint(10, 200),
27+
"orders_by_size": {
28+
"m": random.randint(0, 150),
29+
"s": random.randint(0, 150),
30+
"xl": random.randint(0, 150),
3331
},
34-
'total_amount': random.randint(100, 1000)
32+
"total_amount": random.randint(100, 1000),
3533
}
36-

awesome_gallery/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
# -*- coding: utf-8 -*-
2-
from . import models
1+
from . import models as models

awesome_gallery/__manifest__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
{
32
'name': "Gallery View",
43
'summary': """

awesome_gallery/models/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# import filename_python_file_within_folder_or_subfolder
3-
from . import ir_action
4-
from . import ir_ui_view
2+
from . import ir_action as ir_action
3+
from . import ir_ui_view as ir_ui_view

awesome_gallery/models/ir_action.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from odoo import fields, models
32

43

0 commit comments

Comments
 (0)