Skip to content

Commit

Permalink
[ADD] Estate Account Module & Correction
Browse files Browse the repository at this point in the history
Added the new module estate_account and I fixed most of the suggestion from previous comments

1. Problem: None
2. Objective:
- Finish the tutorial 101. Sometimes go a bit beyond (ex: smart button with invoice)
- Make the necessary adjustement to have a nice code for the next code review.

3. Solution: Code and follow tutorial :)

task-xxxxxxx
  • Loading branch information
CorentinVermeulen committed Oct 24, 2024
1 parent 2fff4dd commit 0f2a365
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion estate/models/estate_property_tag.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from odoo import models, fields


class EstatePropertyTag(models.Model):
_name = 'estate.property.tag'
_description = 'Type of a property'
Expand All @@ -13,4 +14,3 @@ class EstatePropertyTag(models.Model):
('Unique_name', 'unique (name)',
'This tag name already exists'),
]

2 changes: 1 addition & 1 deletion estate/models/estate_property_type.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from odoo import api, models, fields


class EstatePropertyType(models.Model):
_name = 'estate.property.type'
_description = 'Type of a property'
Expand All @@ -21,4 +22,3 @@ class EstatePropertyType(models.Model):
def _compute_offer_count(self):
for record in self:
record.offer_count = len(record.offer_ids)

2 changes: 1 addition & 1 deletion estate/models/res_users.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from odoo import fields, models


class Users(models.Model):
_inherit = 'res.users'

property_ids = fields.One2many('estate.property', 'user_id', string='Properties')

0 comments on commit 0f2a365

Please sign in to comment.