summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatherine Zaoral <kz@adhoc.com.ar>2020-08-07 22:22:25 +0000
committerKatherine Zaoral <kz@adhoc.com.ar>2020-08-07 22:25:03 +0000
commitd42219218548416fd019bfffb399929d93fcd69a (patch)
tree2ec4556e1d40f1c60c253020cea3d0b87d92fc7d
parent360e910da4a42c554527eb0f014e70638290d0a9 (diff)
[FIX] l10n_latam_invoice_document: fix invoice form view.
The latam docuemnts used for document type an document number are not showed correctly in the view, they displaying to close side by side and the related labels are not show. After this PR this has been fixed and now we have the labels and the proper separation of the fields in the invoice form view. closes odoo/odoo#55648 Signed-off-by: Josse Colpaert <jco@openerp.com>
-rw-r--r--addons/l10n_latam_invoice_document/views/account_move_view.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/l10n_latam_invoice_document/views/account_move_view.xml b/addons/l10n_latam_invoice_document/views/account_move_view.xml
index f9c5370d7e1..66e08afdbbe 100644
--- a/addons/l10n_latam_invoice_document/views/account_move_view.xml
+++ b/addons/l10n_latam_invoice_document/views/account_move_view.xml
@@ -40,13 +40,13 @@
<field name="l10n_latam_manual_document_number" invisible="1"/>
</form>
- <field name="journal_id" position="after">
+ <xpath expr="//field[@name='journal_id']/.." position="after">
<field name="l10n_latam_document_type_id"
attrs="{'invisible': [('l10n_latam_use_documents', '=', False)], 'required': [('l10n_latam_use_documents', '=', True)], 'readonly': [('posted_before', '=', True)]}"
domain="[('id', 'in', l10n_latam_available_document_type_ids)]" options="{'no_open': True, 'no_create': True}"/>
<field name="l10n_latam_document_number"
attrs="{'invisible': ['|', ('l10n_latam_use_documents', '=', False), ('l10n_latam_manual_document_number', '=', False), '|', '|', ('l10n_latam_use_documents', '=', False), ('highest_name', '!=', False), ('state', '!=', 'draft')], 'required': ['|', ('l10n_latam_manual_document_number', '=', True), ('highest_name', '=', False)], 'readonly': [('posted_before', '=', True)]}"/>
- </field>
+ </xpath>
<!-- on latam_documents we use document_number to set name -->
<field name="name" position="attributes">