diff --git a/invoice.py b/invoice.py
index e7c3499..fa8ff2f 100644
--- a/invoice.py
+++ b/invoice.py
@@ -404,7 +404,6 @@ class Invoice(metaclass=PoolMeta):
return 'R1' if self.untaxed_amount < Decimal('0.0') else 'F1'
@classmethod
- @ModelView.button
def reset_sii_keys(cls, invoices):
to_write = []
for invoice in invoices:
diff --git a/tests/scenario_aeat_sii.rst b/tests/scenario_aeat_sii.rst
index 76036f5..ca12ccb 100644
--- a/tests/scenario_aeat_sii.rst
+++ b/tests/scenario_aeat_sii.rst
@@ -140,9 +140,9 @@ Create invoice::
>>> invoice.sii_book_key == 'I'
True
- >>> invoice.click('reset_sii_keys')
+ >>> reset_sii_keys = Wizard('aeat.sii.reset.keys', models=[invoice])
+ >>> reset_sii_keys.execute('reset')
>>> invoice.reload()
-
>>> invoice.sii_book_key == 'E'
True
>>> invoice.click('post')
@@ -181,9 +181,9 @@ Create Credit invoice::
>>> invoice.sii_issued_key = '02'
>>> invoice.save()
>>> invoice.reload()
- >>> invoice.click('reset_sii_keys')
+ >>> reset_sii_keys = Wizard('aeat.sii.reset.keys', models=[invoice])
+ >>> reset_sii_keys.execute('reset')
>>> invoice.reload()
-
>>> invoice.sii_book_key == 'E'
True
>>> invoice.sii_operation_key == 'R1'
@@ -214,7 +214,7 @@ Credit invoice with refund::
>>> credit.execute('credit')
>>> invoice.reload()
>>> invoice.state
- 'cancel'
+ 'paid'
>>> credit, = Invoice.find([('total_amount', '<', 0)])
>>> credit.sii_operation_key
'R1'
diff --git a/view/account_invoice_form.xml b/view/account_invoice_form.xml
index 69774f2..3683890 100644
--- a/view/account_invoice_form.xml
+++ b/view/account_invoice_form.xml
@@ -25,7 +25,6 @@ contains the full copyright notices and license terms. -->
-
diff --git a/view/account_invoice_list.xml b/view/account_invoice_list.xml
index 27ec352..da112d0 100644
--- a/view/account_invoice_list.xml
+++ b/view/account_invoice_list.xml
@@ -8,6 +8,5 @@ contains the full copyright notices and license terms. -->
-