-
Notifications
You must be signed in to change notification settings - Fork 2.6k
JUGAC Onboarding #1002
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
base: 19.0
Are you sure you want to change the base?
JUGAC Onboarding #1002
Conversation
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.
Small comments :)
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 :)
Please look at your runbot and make it green.
Also take a look at the naming conventions: https://www.odoo.com/documentation/19.0/contributing/development/coding_guidelines.html#xml-ids-and-naming
state = fields.Selection( | ||
selection=[ | ||
('new', 'New'), | ||
('received', 'Received'), | ||
('accepted', 'Accepted') | ||
] | ||
) |
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.
state = fields.Selection( | |
selection=[ | |
('new', 'New'), | |
('received', 'Received'), | |
('accepted', 'Accepted') | |
] | |
) | |
state = fields.Selection( | |
selection=[ | |
('new', 'New'), | |
('received', 'Received'), | |
('accepted', 'Accepted') | |
], required=True, default='new' | |
) |
state should always be set, and new by default
estate/models/estate_property.py
Outdated
buyer_id = fields.Many2one("res.partner") | ||
salesman_id = fields.Many2one("res.users") | ||
tag_ids = fields.Many2many("estate.property.tag") | ||
offer_ids = fields.One2many("estate.property.offer", "partner_id") No newline at end of file |
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.
Missing newline
estate/models/estate_property.py
Outdated
|
||
class EstateProperty(models.Model): | ||
_name = "estate.property" | ||
_description = "Table that stores the estate properties" |
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.
_description = "Table that stores the estate properties" | |
_description = "Estate Property" |
_description is the human-readable name of the model, not an actual description. It' a misnomer.
estate/views/estate_menus.xml
Outdated
|
||
</menuitem> | ||
</data> | ||
</odoo> No newline at end of file |
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.
Missing newline
</field> | ||
</record> | ||
</data> | ||
</odoo> No newline at end of file |
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.
Missing newline
</field> | ||
</record> | ||
|
||
</odoo> No newline at end of file |
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.
Missing newline
estate/__init__.py
Outdated
@@ -0,0 +1 @@ | |||
from . import models No newline at end of file |
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.
Missing newline
<page string="Description"> | ||
<group> <field name="description"/> </group> | ||
<group> <field name="bedrooms"/> </group> | ||
<group> <field name="living_area"/> </group> | ||
<group> <field name="facades"/> </group> | ||
<group> <field name="garage"/> </group> | ||
<group> <field name="garden"/> </group> | ||
<group> <field name="garden_area"/> </group> | ||
<group> <field name="garden_orientation"/> </group> | ||
</page> |
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.
<page string="Description"> | |
<group> <field name="description"/> </group> | |
<group> <field name="bedrooms"/> </group> | |
<group> <field name="living_area"/> </group> | |
<group> <field name="facades"/> </group> | |
<group> <field name="garage"/> </group> | |
<group> <field name="garden"/> </group> | |
<group> <field name="garden_area"/> </group> | |
<group> <field name="garden_orientation"/> </group> | |
</page> | |
<page string="Description"> | |
<group> | |
<field name="description"/> | |
<field name="bedrooms"/> | |
<field name="living_area"/> | |
<field name="facades"/> | |
<field name="garage"/> | |
<field name="garden"/> | |
<field name="garden_area"/> | |
<field name="garden_orientation"/> | |
</group> | |
</page> |
Use only one group per block of fields
<list string="Estate offers"> | ||
<group> | ||
<field name="price"/> | ||
</group> | ||
<group> | ||
<field name="partner_id"/> | ||
</group> | ||
<group> | ||
<field name="status"/> | ||
</group> | ||
</list> |
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.
<list string="Estate offers"> | |
<group> | |
<field name="price"/> | |
</group> | |
<group> | |
<field name="partner_id"/> | |
</group> | |
<group> | |
<field name="status"/> | |
</group> | |
</list> | |
<list string="Estate offers"> | |
<field name="price"/> | |
<field name="partner_id"/> | |
<field name="status"/> | |
</list> |
No groups needed in a list view
<group> <field name="salesman_id"/> </group> | ||
<group> <field name="buyer_id"/> </group> | ||
<group> <field name="buyer_id"/> </group> |
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 here, only one group needed
…P] estate: attempt to resolve runbot error messages
Create the estate module