-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADD] estate: created estate module in odoov18 #241
base: 18.0
Are you sure you want to change the base?
Conversation
Hassan-Osama
commented
Jan 27, 2025
- created house model
- created offer, tags with their relationships to the house model
- added the menus/actions and views for the created models
- created house model - created offer, tags with their relationships to the house model - added the menus/actions and views for the created models
'data': ['views/estate_property_views.xml', | ||
'views/estate_menus.xml', | ||
'security/ir.model.access.csv', | ||
'views/estate_property_type_views.xml', | ||
'views/estate_property_tag_views.xml', | ||
'views/estate_property_offer_views.xml'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'data': ['views/estate_property_views.xml', | |
'views/estate_menus.xml', | |
'security/ir.model.access.csv', | |
'views/estate_property_type_views.xml', | |
'views/estate_property_tag_views.xml', | |
'views/estate_property_offer_views.xml'], | |
'data': [ | |
'views/estate_property_views.xml', | |
'views/estate_menus.xml', | |
'security/ir.model.access.csv', | |
'views/estate_property_type_views.xml', | |
'views/estate_property_tag_views.xml', | |
'views/estate_property_offer_views.xml', | |
], |
from . import estate_property | ||
from . import estate_property_type | ||
from . import estate_property_tag | ||
from . import estate_property_offer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add empty line @ EOF
from odoo import fields, models | ||
from dateutil.relativedelta import relativedelta | ||
from odoo import api, _ | ||
from odoo.exceptions import UserError | ||
from odoo.exceptions import ValidationError | ||
from odoo.tools.float_utils import float_compare, float_is_zero |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Group and remove duplicate imports for clarity.
from odoo import fields, models | |
from dateutil.relativedelta import relativedelta | |
from odoo import api, _ | |
from odoo.exceptions import UserError | |
from odoo.exceptions import ValidationError | |
from odoo.tools.float_utils import float_compare, float_is_zero | |
from odoo import fields, models, api, _ | |
from dateutil.relativedelta import relativedelta | |
from odoo.exceptions import UserError, ValidationError | |
from odoo.tools.float_utils import float_compare, float_is_zero |
if record.create_date: | ||
record.date_deadline = record.create_date + timedelta(days=record.validity) | ||
else: | ||
record.date_deadline = fields.Date.today() + timedelta(days=record.validity) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add empty lines between methods