-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[ADD] estate: New module to manage estates #814
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: 18.0
Are you sure you want to change the base?
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.
Here are a few cosmetic comments.
5f9528b
to
8bf2ec2
Compare
Actually, the |
b008594
to
36574bb
Compare
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.
Here are a few comments:
a905a17
to
716c663
Compare
41b9431
to
2a00cff
Compare
11b3175
to
759af29
Compare
759af29
to
d5a3567
Compare
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.
Not much to say.
There are remaining '
vs "
, some extra unneeded files, etc... and fixes in late commits instead of "since the start".
But better continue with further training, if you have time later and want to practice more git cleanups, that's always possible too.
estate/models/estate_property.py
Outdated
@api.ondelete(at_uninstall=False) | ||
def _unlink_if_state_is_new_or_cancelled(self): | ||
if any(record.state not in ('new', 'canceled') for record in self): | ||
raise UserError("Only new and canceled properties can be deleted.") |
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.
Those strings are not implicitly translated, they have to be explicitly translated using _
(from odoo import _
)
Oh, you actually do it in further commits. This is also a reason to include the fix inside the original commit. 😉
@@ -0,0 +1,3 @@ | |||
{ | |||
"python.languageServer": "None" |
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.
Of course, on real PRs, such files wouldn't be included.
a4cf5b7
to
374b700
Compare
7aec092
to
d704def
Compare
54166bc
to
f93b2e8
Compare
onWillUpdateProps(() => { | ||
this.chart.destroy(); | ||
this.renderChart(); | ||
}) |
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.
At this stage, this.props
are the old values. onWillUpdateProps
's function receives the new values as parameter.
73f555e
to
cf8ca37
Compare
No description provided.