[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>
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user