Merge lp:~vauxoo/openobject-addons/7.0-supplier_invoice_wrong_test-dev-hbto into lp:openobject-addons/7.0

Proposed by hbto [Vauxoo] http://www.vauxoo.com
Status: Needs review
Proposed branch: lp:~vauxoo/openobject-addons/7.0-supplier_invoice_wrong_test-dev-hbto
Merge into: lp:openobject-addons/7.0
Diff against target: 27 lines (+10/-0)
1 file modified
account/test/account_supplier_invoice.yml (+10/-0)
To merge this branch: bzr merge lp:~vauxoo/openobject-addons/7.0-supplier_invoice_wrong_test-dev-hbto
Reviewer Review Type Date Requested Status
Nhomar - Vauxoo Pending
Review via email: mp+195504@code.launchpad.net

This proposal supersedes a proposal from 2013-11-17.

To post a comment you must log in.
Revision history for this message
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) wrote : Posted in a previous version of this proposal

This test is to check that the supplier invoice test actually been done on a customer invoice

Unmerged revisions

9589. By hbto [Vauxoo] http://www.vauxoo.com

[IMP] Adding missing context to supplier invoice yaml test

9588. By hbto [Vauxoo] http://www.vauxoo.com

[FIX] checking that the supplier invoice is really a supplier invoice

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/test/account_supplier_invoice.yml'
2--- account/test/account_supplier_invoice.yml 2013-08-09 07:06:05 +0000
3+++ account/test/account_supplier_invoice.yml 2013-11-17 07:49:46 +0000
4@@ -19,6 +19,11 @@
5 type_tax_use: all
6 tax_code_id: tax_case
7 -
8+ I set the context that will be used for the encoding of all the invoices of this file
9+-
10+ !context
11+ 'type': 'in_invoice'
12+-
13 I create a supplier invoice
14 -
15 !record {model: account.invoice, id: account_invoice_supplier0, view: invoice_supplier_form}:
16@@ -45,6 +50,11 @@
17 !assert {model: account.invoice, id: account_invoice_supplier0}:
18 - state == 'draft'
19 -
20+ I check that the supplier invoice is a "Supplier Invoice"
21+-
22+ !assert {model: account.invoice, id: account_invoice_supplier0, string: This is not a supplier invoice}:
23+ - type == 'in_invoice'
24+-
25 I change the state of invoice to open by clicking Validate button
26 -
27 !workflow {model: account.invoice, action: invoice_open, ref: account_invoice_supplier0}