2 In order to test account invoice I create a new supplier invoice
4 !record {model: account.invoice, id: account_invoice_supplier0}:
5 account_id: account.a_pay
6 address_contact_id: base.res_partner_address_3000
7 address_invoice_id: base.res_partner_address_3000
9 company_id: base.main_company
12 - account_id: account.a_expense
13 name: '[PC1] Basic PC'
15 product_id: product.product_product_pc1
17 uos_id: product.product_uom_unit
18 journal_id: account.expenses_journal
19 partner_id: base.res_partner_desertic_hispafuentes
23 I check that Initially supplier invoice state is "Draft"
25 !assert {model: account.invoice, id: account_invoice_supplier0}:
28 I change the state of invoice to open by clicking Validate button
30 !workflow {model: account.invoice, action: invoice_open, ref: account_invoice_supplier0}
32 I check that the invoice state is now "Open"
34 !assert {model: account.invoice, id: account_invoice_supplier0}: