Skip to content
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

Closed
wants to merge 32 commits into from
Closed

18.0 training amah #190

wants to merge 32 commits into from

Conversation

amah-odoo
Copy link

No description provided.

@amah-odoo amah-odoo force-pushed the 18.0-training-amah branch 2 times, most recently from c1f97f8 to bc5b991 Compare November 19, 2024 10:32
@robodoo
Copy link

robodoo commented Nov 20, 2024

Pull request status dashboard

@robodoo
Copy link

robodoo commented Nov 20, 2024

@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.

Copy link

@ushyme ushyme left a 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.

'views/estate_menus.xml',

],
'installable': True,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'installable': True,

installable is true by default

'name': "Real Estate",
'version': '1.0',
'depends': ['base'],
'author': "Abdelrahman Mahmoud (amah)",
Copy link

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.

from . import estate_property_type
from . import estate_property_tag
from . import estate_property_offer
from . import res_users
Copy link

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)

@@ -0,0 +1 @@
from . import models
Copy link

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.


</menuitem>
</menuitem>
</odoo>
Copy link

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)

from odoo import models, fields


class InheritedResUsers(models.Model):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
class InheritedResUsers(models.Model):
class ResUsers(models.Model):

Comment on lines +123 to +124
def action_set_offer_received(self):
self.state = 'offer_received'
Copy link

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 ?

Comment on lines 16 to 22
status = fields.Selection([
('accepted', 'Accepted'),
('refused', 'Refused'),
],
copy=False,
)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
status = fields.Selection([
('accepted', 'Accepted'),
('refused', 'Refused'),
],
copy=False,
)
status = fields.Selection(
[
('accepted', 'Accepted'),
('refused', 'Refused'),
],
copy=False,
)

Comment on lines 8 to 9
'data': [

# views

# menu

],
Copy link

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.

# menu

],
'installable': True,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment about 'installable'

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
- 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
- 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
- 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
@amah-odoo amah-odoo closed this Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants