diff options
| author | Josse Colpaert <jco@odoo.com> | 2021-01-06 15:32:38 +0000 |
|---|---|---|
| committer | Josse Colpaert <jco@odoo.com> | 2021-01-25 14:18:11 +0000 |
| commit | c6708a21a28f8e7eefd150f791a3324759a99ed3 (patch) | |
| tree | a75014745ca4a40b4e8baf1c02ab1f4c01bf8391 | |
| parent | 01e09720ed0829d31bf0929d5a418c7b267ad712 (diff) | |
[FIX] l10n_latam_invoice_document: change first document number in draft
The name of your first customer invoice is a configuration that
determines the next ones. The problem before is that when you
confirmed a first invoice, you could not alter its document number
anymore. With this commit, as long as it is the first invoice,
you can still change the document number when you reset to draft.
| -rw-r--r-- | addons/l10n_latam_invoice_document/views/account_move_view.xml | 2 |
1 files changed, 1 insertions, 1 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 66e08afdbbe..28d19bccc4a 100644 --- a/addons/l10n_latam_invoice_document/views/account_move_view.xml +++ b/addons/l10n_latam_invoice_document/views/account_move_view.xml @@ -45,7 +45,7 @@ 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)]}"/> + 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), ('state', '!=', 'draft')]}"/> </xpath> <!-- on latam_documents we use document_number to set name --> |
