-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
18.0 training amah #190
18.0 training amah #190
Conversation
c1f97f8
to
bc5b991
Compare
@amah-odoo I didn't know about this PR and had to retrieve its information, you may have to re-approve it as I didn't see previous commands. |
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.
Good work ! Just a few remarks we already talked about.
estate/__manifest__.py
Outdated
'views/estate_menus.xml', | ||
|
||
], | ||
'installable': True, |
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.
'installable': True, |
installable
is true by default
estate/__manifest__.py
Outdated
'name': "Real Estate", | ||
'version': '1.0', | ||
'depends': ['base'], | ||
'author': "Abdelrahman Mahmoud (amah)", |
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.
Since you're working for Odoo, you shouldn't sign the module in your personal name. Odoo is the default value, and leaving the author field empty will automatically sign the module under Odoo as required.
estate/models/__init__.py
Outdated
from . import estate_property_type | ||
from . import estate_property_tag | ||
from . import estate_property_offer | ||
from . import res_users |
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.
Same issue as before (missing trailing line)
estate/__init__.py
Outdated
@@ -0,0 +1 @@ | |||
from . import models |
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.
Remember to leave an empty line at the end of files. While it seems trivial, it ensures compatibility with many tools and version control systems.
estate/views/estate_menus.xml
Outdated
|
||
</menuitem> | ||
</menuitem> | ||
</odoo> |
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.
Same issue as before (missing trailing line)
estate/models/res_users.py
Outdated
from odoo import models, fields | ||
|
||
|
||
class InheritedResUsers(models.Model): |
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.
class InheritedResUsers(models.Model): | |
class ResUsers(models.Model): |
def action_set_offer_received(self): | ||
self.state = 'offer_received' |
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.
Is there a reason why you wrote this method ?
status = fields.Selection([ | ||
('accepted', 'Accepted'), | ||
('refused', 'Refused'), | ||
], | ||
copy=False, | ||
) |
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.
status = fields.Selection([ | |
('accepted', 'Accepted'), | |
('refused', 'Refused'), | |
], | |
copy=False, | |
) | |
status = fields.Selection( | |
[ | |
('accepted', 'Accepted'), | |
('refused', 'Refused'), | |
], | |
copy=False, | |
) |
estate_account/__manifest__.py
Outdated
'data': [ | ||
|
||
# views | ||
|
||
# menu | ||
|
||
], |
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.
Don't leave empty values.
estate_account/__manifest__.py
Outdated
# menu | ||
|
||
], | ||
'installable': True, |
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.
same comment about 'installable'
45f9d17
to
2b24ecd
Compare
add the base for manifest
- base of property model - estate.property: the basic fields - estate.property: mark the requird fields
- estate.property: security base file
- estate.property: base view action - estate: base for the menus - estate.property: add some properties to the fields - estate.property: some reserved fields
- estate.property: list, form, search views
- estate: new models type, tag, offer with thier views - estate.property: link with the new created models
- fix some typos in required word - Add the computed fields
- estate.property: actions and buttons to change state - estate.property.offer: actions and buttons to change status
- constrains on prices to be postive - constrains on names to be unique - constrains on selling to be 90% of expected
- list view for the propeties in each type - make the state of the propety as statusbar - list orders for the models - Apply color, invesible, readonly attribute where needed in the views - Change list views to be editable and has color decorations - override filter_domain for the area to be greater than - connection between the type and offers to create a stat button
- override the delete of properties to prevent deletion of in-process ones - make the offer_recivied triggered on creation not onchange - res.users: connection to the estate.property and show them in list in notebook page
- module to likn the estate to accounting - issue an invoice at selling the property
- provide a grouped kanban view for the properties
- rename inhertied files name - reorder the imports - correction attribute order - make action name consistent [REF] estate_account: rename inhertied files name to meet the guidlines
2b24ecd
to
58e2165
Compare
- change the offer creation to override the multi_creation - remove depricated kanban-box template from the properties kanban view
- test the total area calculation - test the selling the property prevent cancelling or creation of new offer
566e7f2
to
487cb26
Compare
- add agent and manager groups - make the user only sees his own docs
…urity check to stop the bypass - add a bypass to make agent able to make invoice - add security check prog before the sudo to ensure that only agents with write access can bypass the security
…ties and from salesman views
- add id to div in estate to locate it using xpath - add a line to indicate that an invoice is isssued if so - fix the access check argument
No description provided.