Skip to content

18.0 estate ibmo #818

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

Open
wants to merge 4 commits into
base: 18.0
Choose a base branch
from
Open

18.0 estate ibmo #818

wants to merge 4 commits into from

Conversation

MostafaTwfiq
Copy link

No description provided.

@robodoo
Copy link

robodoo commented Jun 18, 2025

Pull request status dashboard

Copy link

@bso-odoo bso-odoo left a comment

Choose a reason for hiding this comment

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

Here are a few comments

'application': True,
'auto_install': False,
'license': 'LGPL-3',
}

Choose a reason for hiding this comment

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

We try to put a return character at the end of the last line in every file.
This way, when a new line is added to the file, that line is not impacted.

garage = fields.Boolean(string='Garage')
garden = fields.Boolean(string='Garden')
garden_area = fields.Integer(string='Garden Area')
arden_orientation = fields.Selection(string='Arden Orientation', selection=[

Choose a reason for hiding this comment

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

arden_orientation => garden_orientation 😉

Comment on lines 37 to 40
('north', 'North'),
('south', 'South'),
('east', 'East'),
('west', 'West')

Choose a reason for hiding this comment

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

In python, we try to follow the following convention for quoting strings:

  • single quote for technical terms
  • double quotes for displayed texts

=> ('north', "North")


<menuitem id="estate_property_menu_root" name="Estate Property Menu">
<menuitem id="estate_property_level_menu" name="First Level">
<menuitem id="estate_property_menu_action" action="estate_property_menu_action"/>

Choose a reason for hiding this comment

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

This menuitem has the same id as the action. Do not mention menu in the action id, this will solve the data import issue you are encountering.

Comment on lines 35 to 41
arden_orientation = fields.Selection(string='Arden Orientation', selection=[
('north', 'North'),
('south', 'South'),
('east', 'East'),
('west', 'West')
]) No newline at end of file
garden_orientation = fields.Selection(string='Arden Orientation', selection=[
('north', "North"),
('south', "South"),
('east', "East"),
('west', "West")
])

Choose a reason for hiding this comment

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

string='Arden => string="Garden 😉

But, let's try to make those changes in the commit where they originally appeared.
Look at the git rebase -i command to rewrite you branch's history.
You will then need to use git push --force-with-lease to send such changes to the repo. (Try not to use git push --force to avoid accidents when working together with other people on a common branch)

Upon merge, you will want the commits of your PR to actually describe what is changed and why. The intermediary development attempts and typo fixes are not interresting for the future reader who will try to find out why some lines were added three years ago. So, for small intra-branch fixes, always try to make them in the commit where they should initially have been correct.

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