Skip to content

Commit 7b006d7

Browse files
committed
[FIX] estate: fixed the issues
Fixed issues in the previous commit.
1 parent 31b94d0 commit 7b006d7

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

awesome_gallery/models/ir_action.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
class ActWindowView(models.Model):
66
_inherit = 'ir.actions.act_window.view'
77

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

estate/models/estate_property.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ class EstateProperty(models.Model):
1919
garden = fields.Boolean()
2020
garden_area = fields.Integer()
2121
garden_orientation = fields.Selection(
22-
string='Orientation',
22+
string="Orientation",
2323
selection=[
24-
('north', 'North'), ('south', 'South'), ('east', 'East'), ('west', 'West')],
24+
('north', "North"), ('south', "South"), ('east', "East"), ('west', "West")],
2525
help="Direction the garden faces"
2626

2727
)
2828
state = fields.Selection(
2929
selection=[
30-
('new', 'New'),
31-
('offer_received', 'Offer Received'),
32-
('offer_accepted', 'Offer Accepted'),
33-
('sold', 'Sold'),
34-
('canceled', 'Cancelled'),
30+
('new', "New"),
31+
('offer_received', "Offer Received"),
32+
("offer_accepted", "Offer Accepted"),
33+
('sold', "Sold"),
34+
('canceled', "Cancelled"),
3535
],
3636
string="Status",
3737
required=True,

0 commit comments

Comments
 (0)