-
-
Notifications
You must be signed in to change notification settings - Fork 471
[17.0][MIG] account_check_date: Migration to 17.0 #888
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: 17.0
Are you sure you want to change the base?
Conversation
9e5f2a8 to
9161f36
Compare
DantePereyra
left a comment
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.
Minor comments 👍
account_check_date/__manifest__.py
Outdated
|
|
||
| { | ||
| "name": "Account Check Date", | ||
| "version": "17.0.0.1.0", |
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.
| "version": "17.0.0.1.0", | |
| "version": "17.0.1.0.0", |
Small detail
| check_date = fields.Date( | ||
| default=fields.Date.context_today, | ||
| required=True, | ||
| readonly=True, |
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.
Could be readonly be on account_payment_views.xml?
- If a field is marked as readonly=True on the model, it won't be possible to import it through the Odoo import tool, so avoid it as possible and define the readonly attribute on the views instead. See more here
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.
Yes, this is actually unneeded. In original code states and readonly combined at field definition actually meant this:
- By default, field is readonly.
- But, for one state (
draft), is not.
So removing states at python definition should be done along with readonly deletion. And readonly management 100% moved to view (that is currently done)
9161f36 to
833fe5d
Compare
ChristianSantamaria
left a comment
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.
LGTM
Standard Migration to 17.0.
Changes: