File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ 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" , compute = "_compute_offers" , 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-
19+
2020 def _compute_offers (self ):
2121 for record in self :
2222 offers = self .env ['estate.property.offer' ].search ([
You can’t perform that action at this time.
0 commit comments