Skip to content

Commit d9119ca

Browse files
committed
[IMP] estate: Bug fixes
1 parent 1041da7 commit d9119ca

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

estate/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
'name': 'Real Estate',
3-
'depends': ['base','sale'],
3+
'depends': ['base', 'sale'],
44
'application': True,
55
'installable': True,
66
'author': 'Odoo S.A.',

estate/models/estate_property_offer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ def create(self, vals):
8080
for offer in records:
8181
offer.property_id.state = "offer_received"
8282
return records
83-
83+
8484
@api.model
8585
def _auto_refuse_pass_deadline_entry(self):
86-
current_date = fields.Date.today()+relativedelta(days=7)
86+
current_date = fields.Date.today() + relativedelta(days=7)
8787
invalid_offers = self.search([
8888
('date_deadline', '<=', current_date),
8989
('status', 'not in', ['accepted', 'refused']),

estate/models/sale_order.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33

44
class SaleOrder(models.Model):
5-
_inherit="sale.order"
5+
_inherit = "sale.order"
66
property_type_id = fields.Many2one("estate.property")

0 commit comments

Comments
 (0)