From 91aceecc63da93a694c27fbbc8583d04cb67f39f Mon Sep 17 00:00:00 2001 From: "Guillaume (guva)" Date: Mon, 4 Sep 2023 17:08:04 +0200 Subject: [PATCH] [FIX] l10n_es_edi_sii: add registration date field When sending an bill to sii services, the registration date is set as today, instead of the accounting date. This is because the registration date is automatically set to today when sending the bill. With this commit, we add registration_date field to teh account_move view in other infos tab, to allow the user to manually set it. Steps: - Install l10n_es_edi_sii - Set a tax agency in Accounting > Configuration > Settings - Create a bill, with date and accounting date in the past - Confirm and send to sii services -> In the file, 'FechaRegContable' is set to today opw-3478079 closes odoo/odoo#134370 X-original-commit: 325857efcfc8060666b3860ae61c5321baab5462 Signed-off-by: Josse Colpaert Signed-off-by: Guillaume Vanleynseele (guva) --- addons/l10n_es_edi_sii/__manifest__.py | 1 + .../l10n_es_edi_sii/views/account_move_views.xml | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 addons/l10n_es_edi_sii/views/account_move_views.xml diff --git a/addons/l10n_es_edi_sii/__manifest__.py b/addons/l10n_es_edi_sii/__manifest__.py index a101146bbe0..dcffe0fa685 100644 --- a/addons/l10n_es_edi_sii/__manifest__.py +++ b/addons/l10n_es_edi_sii/__manifest__.py @@ -39,6 +39,7 @@ 'views/account_tax_views.xml', 'views/l10n_es_edi_certificate_views.xml', 'views/res_config_settings_views.xml', + 'views/account_move_views.xml', ], 'demo': ['demo/demo_certificate.xml'], 'external_dependencies': { diff --git a/addons/l10n_es_edi_sii/views/account_move_views.xml b/addons/l10n_es_edi_sii/views/account_move_views.xml new file mode 100644 index 00000000000..11352c4b669 --- /dev/null +++ b/addons/l10n_es_edi_sii/views/account_move_views.xml @@ -0,0 +1,15 @@ + + + + + account.move.form.inherit.l10n_es_edi + account.move + + + + + + + + +