Skip to content

Commit 6bcf6d1

Browse files
committed
[REF] Adding custom views to estate module
1 parent 01338d7 commit 6bcf6d1

30 files changed

Lines changed: 266 additions & 48 deletions

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: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
{
32
'name': "Awesome Clicker",
43

@@ -25,5 +24,5 @@
2524
],
2625

2726
},
28-
'license': 'AGPL-3'
27+
'license': 'AGPL-3',
2928
}

awesome_dashboard/__init__.py

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

32
from . import controllers

awesome_dashboard/__manifest__.py

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

@@ -26,5 +25,5 @@
2625
'awesome_dashboard/static/src/**/*',
2726
],
2827
},
29-
'license': 'AGPL-3'
28+
'license': 'AGPL-3',
3029
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
# -*- coding: utf-8 -*-
21

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

awesome_dashboard/controllers/controllers.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
# -*- coding: utf-8 -*-
21

32
import logging
43
import random
54

65
from odoo import http
7-
from odoo.http import request
86

97
logger = logging.getLogger(__name__)
108

9+
1110
class AwesomeDashboard(http.Controller):
1211
@http.route('/awesome_dashboard/statistics', type='jsonrpc', auth='user')
1312
def get_statistics(self):
@@ -31,6 +30,5 @@ def get_statistics(self):
3130
's': random.randint(0, 150),
3231
'xl': random.randint(0, 150),
3332
},
34-
'total_amount': random.randint(100, 1000)
33+
'total_amount': random.randint(100, 1000),
3534
}
36-

awesome_gallery/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
# -*- coding: utf-8 -*-
21
from . import models

awesome_gallery/__manifest__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
{
32
'name': "Gallery View",
43
'summary': """
@@ -23,5 +22,5 @@
2322
],
2423
},
2524
'author': 'Odoo S.A.',
26-
'license': 'AGPL-3'
25+
'license': 'AGPL-3',
2726
}

awesome_gallery/models/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
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, ir_ui_view
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
# -*- coding: utf-8 -*-
21
from odoo import fields, models
32

43

54
class ActWindowView(models.Model):
65
_inherit = 'ir.actions.act_window.view'
76

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

0 commit comments

Comments
 (0)