Skip to content

Commit f68c4cb

Browse files
committed
[FIX] estate: NewID error1
1 parent f645ee5 commit f68c4cb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

estate/models/estate_property_type.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ class PropertyType(models.Model):
99
name = fields.Char(required=True)
1010
property_ids = fields.One2many('estate.property', 'property_type_id', string='Properties')
1111
sequence = fields.Integer(string="Sequence", default=10)
12-
offer_ids = fields.One2many("estate.property.offer", "property_type_id",string="Offers")
12+
offer_ids = fields.One2many("estate.property.offer", "property_type_id" ,string="Offers")
1313
offer_count = fields.Integer(string="Offer Count", compute="_compute_offer_count")
1414

1515
@api.depends("offer_ids")
1616
def _compute_offer_count(self):
1717
for record in self:
1818
record.offer_count = len(record.offer_ids)
19-
20-
def _compute_offers(self):
21-
for record in self:
22-
offers = self.env['estate.property.offer'].search([
23-
('property_type_id', '=', record.id)
24-
])
25-
record.offer_ids = offers
19+
20+
# def _compute_offers(self):
21+
# for record in self:
22+
# offers = self.env['estate.property.offer'].search([
23+
# ('property_type_id', record.id)
24+
# ])
25+
# record.offer_ids = offers

0 commit comments

Comments
 (0)