-
Notifications
You must be signed in to change notification settings - Fork 118
[IMP] l10n_es: hide simplified invoice field for non-ES companies #4963
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-l10n_es-accounting-onboarding-malb
Are you sure you want to change the base?
[IMP] l10n_es: hide simplified invoice field for non-ES companies #4963
Conversation
|
This PR targets the un-managed branch odoo-dev/odoo:19.0-l10n_es-accounting-onboarding-malb, it needs to be retargeted before it can be merged. |
FlorianGilbert
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.
May I ask you to have a complete commit message where you explain what you are doing and why?
We also have to add the task id at the end of the commit message according to the guidelines.
| <field name="name">account.move.form.inherit</field> | ||
| <field name="model">account.move</field> | ||
| <field name="inherit_id" ref="account.view_move_form"/> | ||
| <field name="inherit_id" ref="account.view_move_form" /> |
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.
That's what we like to call useless diff. We generally try to avoid diff when it's not necessary, may I ask you to remove this?
FlorianGilbert
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.
Ok almost good to me! May I ask you to squash your commits?
4d2d74f to
3ca2194
Compare
Before this commit, the 'l10n_es_is_simplified' field was visible on invoices for all companies, even if they were not Spanish. This commit hides the field if the company's country is not Spain. It also ensures the field is readonly when the entry is posted. Task-ID: 5867665
3ca2194 to
0a14655
Compare
| <field name="l10n_es_is_simplified" | ||
| invisible="country_code != 'ES'" | ||
| readonly="state == 'posted'" |
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.
I could nitpick on the alignment of attributes, but that's ok!
| <field name="l10n_es_is_simplified" | |
| invisible="country_code != 'ES'" | |
| readonly="state == 'posted'" | |
| <field name="l10n_es_is_simplified" | |
| invisible="country_code != 'ES'" | |
| readonly="state == 'posted'" |
No description provided.