Skip to content

Commit

Permalink
[15.0][FIX] l10n_es_aeat_sii_oca: rename method confirm_one_invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilioPascual committed Jul 27, 2023
1 parent 20a1efe commit 4051146
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions l10n_es_aeat_sii_oca/data/aeat_sii_queue_job.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@
<field name="method">cancel_one_invoice</field>
<field name="channel_id" ref="invoice_validate_sii" />
</record>
<record id="job_function_confirm_one_document" model="queue.job.function">
<field name="model_id" ref="account.model_account_move" />
<field name="method">confirm_one_document</field>
<field name="channel_id" ref="invoice_validate_sii" />
</record>
</odoo>
3 changes: 3 additions & 0 deletions l10n_es_aeat_sii_oca/models/sii_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,3 +911,6 @@ def _send_document_to_sii(self):

def confirm_one_document(self):
self.sudo()._send_document_to_sii()

def confirm_one_invoice(self):
return self.confirm_one_document()

0 comments on commit 4051146

Please sign in to comment.