Skip to content

Conversation

@EduardD22
Copy link

No description provided.

@robodoo
Copy link

robodoo commented Jan 26, 2026

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.

Copy link

@FlorianGilbert FlorianGilbert left a 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" />

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?

Copy link

@FlorianGilbert FlorianGilbert left a 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?

@EduardD22 EduardD22 force-pushed the 19.0-fix-spanish-field-eadi branch from 4d2d74f to 3ca2194 Compare January 26, 2026 15:30
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
@EduardD22 EduardD22 force-pushed the 19.0-fix-spanish-field-eadi branch from 3ca2194 to 0a14655 Compare January 26, 2026 15:50
Comment on lines +9 to +11
<field name="l10n_es_is_simplified"
invisible="country_code != 'ES'"
readonly="state == 'posted'"

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!

Suggested change
<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'"

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.

4 participants