[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 <jco@odoo.com> Signed-off-by: Guillaume Vanleynseele (guva) <guva@odoo.com>
This commit is contained in:
@@ -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': {
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="view_move_form_inherit_l10n_es_edi" model="ir.ui.view">
|
||||
<field name="name">account.move.form.inherit.l10n_es_edi</field>
|
||||
<field name="model">account.move</field>
|
||||
<field name="inherit_id" ref="account.view_move_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//group[@id='other_tab_group']//group[@name='accounting_info_group']" position="inside">
|
||||
<field name="l10n_es_registration_date" readonly="state == 'posted'" invisible="country_code != 'ES'"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user