summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqdp-odoo <qdp@odoo.com>2017-08-29 16:36:44 +0200
committerqdp-odoo <qdp@odoo.com>2017-08-29 16:36:44 +0200
commit5fb121e77384a158d8cb1f7ad6a078e7c54df8ac (patch)
treef7ea6c672ba711a05a223ba21ae86c57cbd0c11a
parent9ec57ed0b984f6148f3f0466b2d52eaa913b89a1 (diff)
[FIX] account: fix error introduced in previous rev -_-
A model was removed at 9ec57ed0b984f6148f3f0466b2d52eaa913b89a1 but was still used in yaml test.
-rw-r--r--addons/account/test/account_invoice_state.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/account/test/account_invoice_state.yml b/addons/account/test/account_invoice_state.yml
index 345e175e404..2ddb7d66fff 100644
--- a/addons/account/test/account_invoice_state.yml
+++ b/addons/account/test/account_invoice_state.yml
@@ -42,10 +42,10 @@
assert (len(moves) > 0), 'You should have multiple moves'
moves[0].journal_id.write({'update_posted': True})
-
- In order to check the "Cancel Selected Invoices" wizard in odoo I cancelled this open invoice using this wizard
+ I cancelled this open invoice using the button on invoice
-
- !record {model: account.invoice.cancel, id: account_invoice_cancel_0}:
- {}
+ !python {model: account.invoice, id: account_invoice_state}:
+ self.action_invoice_cancel()
-
I check that customer invoice is in the cancel state
-