File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -102,11 +102,11 @@ def _onchange_garden(self):
102102 if not self .garden :
103103 self .garden_orientation = "north"
104104 self .garden_area = 10
105-
105+
106106 @api .constrains ("state" )
107107 def _check_offers_state (self ):
108108 self .ensure_one ()
109- if self .state == 'sold' and not [offer for offer in self .offer_ids if offer .status == 'accepted' ]:
109+ if self .state == 'sold' and not [offer for offer in self .offer_ids if offer .status == 'accepted' ]:
110110 raise exceptions .UserError ("You cannot sold a property without accepted offer" )
111111
112112 @api .constrains ('selling_price' , 'expected_price' )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ class EstateTestCase(TransactionCase):
88
99 @classmethod
1010 def setUpClass (cls ):
11- super (EstateTestCase , cls ).setUpClass ()
11+ super ().setUpClass ()
1212
1313 cls .properties = cls .env ['estate.property' ].create ({"name" : "Test house" , "expected_price" : 240000 })
1414 cls .partner = cls .env ['res.partner' ].create ({"name" : "Partner" })
You can’t perform that action at this time.
0 commit comments