File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments