Skip to content

Commit

Permalink
[FIX] l10n_es_facturae: required conditions
Browse files Browse the repository at this point in the history
It isn't enough to hide the group containing the fields. For non
invoincing addresses we'll end in a blocking situations where we can't
save any change.

TT52257
  • Loading branch information
chienandalu committed Dec 17, 2024
1 parent 4da2f26 commit 6b2a574
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions l10n_es_facturae/views/res_partner_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@
<field name="facturae_version" />
<field
name="organo_gestor"
attrs="{'required': [('facturae', '=', True)]}"
attrs="{'required': [('facturae', '=', True), ('type', '=', 'invoice')]}"
/>
<field
name="unidad_tramitadora"
attrs="{'required': [('facturae', '=', True)]}"
attrs="{'required': [('facturae', '=', True), ('type', '=', 'invoice')]}"
/>
<field
name="oficina_contable"
attrs="{'required': [('facturae', '=', True)]}"
attrs="{'required': [('facturae', '=', True), ('type', '=', 'invoice')]}"
/>
<field name="organo_proponente" />
<field name="attach_invoice_as_annex" />
Expand Down

0 comments on commit 6b2a574

Please sign in to comment.