Activate used_tax flag in sales intracommunitary taxes.
Fix query methods. Add missing fields to tax and tax template form views.
This commit is contained in:
parent
bb2a835565
commit
6118cac7ea
12
aeat.py
12
aeat.py
|
@ -568,10 +568,8 @@ class SIIReport(Workflow, ModelSQL, ModelView):
|
|||
crt, key, test=SII_TEST)
|
||||
res = srv.query(
|
||||
headers,
|
||||
year=self.fiscalyear.name,
|
||||
period=self.period.start_date.month,
|
||||
mapper=mapper,
|
||||
last_invoice=last_invoice)
|
||||
year=self.period.start_date.year,
|
||||
period=self.period.start_date.month)
|
||||
|
||||
registers = \
|
||||
res.RegistroRespuestaConsultaLRFacturasEmitidas
|
||||
|
@ -741,10 +739,8 @@ class SIIReport(Workflow, ModelSQL, ModelView):
|
|||
crt, key, test=SII_TEST)
|
||||
res = srv.query(
|
||||
headers,
|
||||
year=self.fiscalyear.name,
|
||||
period=self.period.start_date.month,
|
||||
mapper=mapper,
|
||||
last_invoice=last_invoice)
|
||||
year=self.period.start_date.year,
|
||||
period=self.period.start_date.month)
|
||||
|
||||
_logger.debug(res)
|
||||
registers = res.RegistroRespuestaConsultaLRFacturasRecibidas
|
||||
|
|
16
locale/es.po
16
locale/es.po
|
@ -82,6 +82,14 @@ msgctxt "field:account.tax,sii_subjected_key:"
|
|||
msgid "Subjected Key"
|
||||
msgstr "Clave sujeto"
|
||||
|
||||
msgctxt "field:account.tax,tax_used:"
|
||||
msgid "Used in Tax"
|
||||
msgstr "Usado en impuestos"
|
||||
|
||||
msgctxt "field:account.tax,invoice_used:"
|
||||
msgid "Used in invoice Total"
|
||||
msgstr "Usado en total de factura"
|
||||
|
||||
msgctxt "field:account.tax.template,sii_book_key:"
|
||||
msgid "Book Key"
|
||||
msgstr "Clave libro"
|
||||
|
@ -106,6 +114,14 @@ msgctxt "field:account.tax.template,sii_subjected_key:"
|
|||
msgid "Subjected Key"
|
||||
msgstr "Clave sujeto"
|
||||
|
||||
msgctxt "field:account.tax.template,tax_used:"
|
||||
msgid "Used in Tax"
|
||||
msgstr "Usado en impuestos"
|
||||
|
||||
msgctxt "field:account.tax.template,invoice_used:"
|
||||
msgid "Used in invoice Total"
|
||||
msgstr "Usado en total de factura"
|
||||
|
||||
msgctxt "field:aeat.sii.issued.invoice.mapper,id:"
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
|
4
sii.xml
4
sii.xml
|
@ -91,14 +91,14 @@ this repository contains the full copyright notices and license terms. -->
|
|||
<field name="sii_book_key">E</field>
|
||||
<field name="sii_issued_key">01</field>
|
||||
<field name="sii_excemption_key">E5</field>
|
||||
<field name="tax_used" eval="False"/>
|
||||
<field name="tax_used" eval="True"/>
|
||||
<field name="invoice_used" eval="True"/>
|
||||
</record>
|
||||
<record model="account.tax.template" id="account_es.iva_IO_serv">
|
||||
<field name="sii_book_key">E</field>
|
||||
<field name="sii_issued_key">01</field>
|
||||
<field name="sii_excemption_key">E6</field>
|
||||
<field name="tax_used" eval="False"/>
|
||||
<field name="tax_used" eval="True"/>
|
||||
<field name="invoice_used" eval="True"/>
|
||||
</record>
|
||||
<record model="account.tax.template" id="account_es.iva_dev_AI">
|
||||
|
|
|
@ -4,6 +4,10 @@ contains the full copyright notices and license terms. -->
|
|||
<data>
|
||||
<xpath expr="/form/notebook/page[@name='legal_notice']" position="after">
|
||||
<page string="AEAT SII" id="aeatsii">
|
||||
<label name="tax_used"/>
|
||||
<field name="tax_used"/>
|
||||
<label name="invoice_used"/>
|
||||
<field name="invoice_used"/>
|
||||
<label name="sii_book_key"/>
|
||||
<field name="sii_book_key"/>
|
||||
<label name="sii_issued_key"/>
|
||||
|
|
Loading…
Reference in New Issue