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

[ADD] created a new module, model definition,added security file,crea… #322

Draft
wants to merge 2 commits into
base: 18.0
Choose a base branch
from

Conversation

jodh-odoo
Copy link

…ted action and menuitems, created custom list view

…ted action and menuitems, created custom list view
@robodoo
Copy link

robodoo commented Feb 5, 2025

Pull request status dashboard

Copy link

@mobe-odoo mobe-odoo left a comment

Choose a reason for hiding this comment

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

Hello @jodh-odoo ,

I've added some suggestions. Please have a look at them.
Please make sure to add a new line at the end of every file.

default="new",
selection=[('new', 'New'), ('offerreceived', 'Offer Received'), ('offeraccepted', 'Offer Accepted'), ('sold', 'Sold'), ('cancelled', 'Cancelled')]
)
active=fields.Boolean(default=True)

Choose a reason for hiding this comment

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

No new line at EOF
Check other occurences also.

Copy link
Author

Choose a reason for hiding this comment

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

checked all the occurences and add a new line at EOF.

@@ -0,0 +1,13 @@
{
'name':'Real Estate',
'version':'0.0.0',

Choose a reason for hiding this comment

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

Suggested change
'version':'0.0.0',
'version':'1.0',

please add correct version for module.

Copy link
Author

Choose a reason for hiding this comment

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

Suggested changes are done.

Choose a reason for hiding this comment

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

Check the proper sequencing for fields in manifest file.

Copy link
Author

Choose a reason for hiding this comment

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

Checked the proper sequencing and done changes accordingly.

name=fields.Char(required=True,default="Unknown")
description=fields.Text()
postcode=fields.Char()
date_availability=fields.Date(copy=False,default=fields.Date.today()+timedelta(days=+90))

Choose a reason for hiding this comment

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

Suggested change
date_availability=fields.Date(copy=False,default=fields.Date.today()+timedelta(days=+90))
date_availability = fields.Date(copy=False, default=fields.Date.today() + timedelta(days=90))

Please ensure the entire module follows coding guidelines by adding spaces wherever necessary.
Could you explain the purpose of "copy", "required", "readonly" parameters?

Copy link
Author

Choose a reason for hiding this comment

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

copy is used to make sure that while duplicating a record the field where copy is used does not gets copied,
required is used to make the field not null, and read only parameter prevents the alteration of the field.

_description="test description"


name=fields.Char(required=True,default="Unknown")

Choose a reason for hiding this comment

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

Suggested change
name=fields.Char(required=True,default="Unknown")
name = fields.Char(required=True, default="Unknown")

General comment to keep in mind from next time:
Please ensure the entire module follows coding guidelines by adding spaces wherever necessary.

Copy link
Author

Choose a reason for hiding this comment

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

ensured the coding guidelines are followed according to your suggestion.

Choose a reason for hiding this comment

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

Why there is need of new file for adding views?
Can't we add the views in its appropriate file (estate_property_views.xml)?

Copy link
Author

Choose a reason for hiding this comment

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

added the views in their appropriate files.

<field name="res_model">estate.property</field>
<field name="view_mode">list,form</field>
</record>

Choose a reason for hiding this comment

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

Why there is extra line here? Please remove the extra line.

Copy link
Author

Choose a reason for hiding this comment

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

Suggested changes are done.

…d cutom form view and search view, seperated files for menuitems and views,actions.
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