Skip to content

Commit 8537953

Browse files
committed
[FIX] estate: fixed all Runbot Errors
Modified code to meet coding guidelines. Solved all Runbot Errors.
1 parent 1d0c31f commit 8537953

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

estate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from . import models
1+
from . import models

estate/models/estate_property.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from odoo.exceptions import UserError, ValidationError
44
from odoo.tools import float_utils, _
55

6+
67
class EstateProperty(models.Model):
78
_name = "estate.property"
89
_description = "Details of all the properties will be stored over here."
@@ -68,7 +69,7 @@ def _onchange_garden(self):
6869
def action_sold(self):
6970
if self.state != "canceled":
7071
self.state = "sold"
71-
print("Log by KDES", flush=True)
72+
# print("Log by KDES", flush=True)
7273
else:
7374
raise UserError("Canceled properties can't be sold")
7475
return True

estate_account/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from . import models
1+
from . import models

estate_account/models/estate_property.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
from odoo import models, fields, Command
1+
from odoo import models, Command
22

33

44
class EstateProperty(models.Model):
55
_inherit = "estate.property"
66

77
def action_sold(self):
8-
print("Log by kdes inside Child model", flush=True)
8+
# print("Log by kdes inside Child model", flush=True)
99
self.ensure_one()
1010
self.env["account.move"].create(
1111
{
@@ -29,4 +29,4 @@ def action_sold(self):
2929
],
3030
}
3131
)
32-
return super().action_sold()
32+
return super().action_sold()
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
2-
estate.access_estate_property,access_estate_property,estate.model_estate_property,base.group_user,1,1,1,1

0 commit comments

Comments
 (0)