Skip to content

Commit be03363

Browse files
author
youness benbraitit (yoben)
committed
[FIX] estate: fixed spaces for linting
1 parent 7d3a109 commit be03363

File tree

3 files changed

+21
-12
lines changed

3 files changed

+21
-12
lines changed

estate/models/estate_property.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,6 @@ def _check_selling_price_constraint(self):
126126
def _ondelete_check_state(self):
127127
for prop in self:
128128
if prop.state not in ('new', 'cancelled'):
129-
raise UserError('Only properties in New or Cancelled state can be deleted.')
129+
raise UserError(
130+
'Only properties in New or Cancelled state can be deleted.'
131+
)

estate/models/res_users.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ class ResUsers(models.Model):
55
_inherit = "res.users"
66

77
property_ids = fields.One2many(
8-
"estate.property", "user_id", string="Estate Properties", domain="[('state', '=', 'new')]"
8+
"estate.property",
9+
"user_id",
10+
string="Estate Properties",
11+
domain="[('state', '=', 'new')]",
912
)

estate_account/models/estate_property.py

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,20 @@ def action_sold(self):
2121
'partner_id': partner.id,
2222
'move_type': 'out_invoice',
2323
'invoice_line_ids': [
24-
Command.create({
25-
'name': 'Commission (6%)',
26-
'quantity': 1.0,
27-
'price_unit': commission_amount,
28-
}),
29-
Command.create({
30-
'name': 'Administrative fees',
31-
'quantity': 1.0,
32-
'price_unit': 100.00,
33-
}),
24+
Command.create(
25+
{
26+
'name': 'Commission (6%)',
27+
'quantity': 1.0,
28+
'price_unit': commission_amount,
29+
}
30+
),
31+
Command.create(
32+
{
33+
'name': 'Administrative fees',
34+
'quantity': 1.0,
35+
'price_unit': 100.00,
36+
}
37+
),
3438
],
3539
}
3640
if journal:

0 commit comments

Comments
 (0)