Skip to content
Snippets Groups Projects
Commit 325857ef authored by Guillaume (guva)'s avatar Guillaume (guva)
Browse files

[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#134173

Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
parent 26a63a94
No related branches found
No related tags found
No related merge requests found
......@@ -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': {
......
<?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" attrs="{'readonly': [('state', '=', 'posted')], 'invisible': [('country_code', '!=', 'ES')]}"/>
</xpath>
</field>
</record>
</data>
</odoo>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment