X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=addons%2Faccount_followup%2Ftest%2Faccount_followup.yml;h=ceb7ec2ea9bf81e45450c587c6db0e95a5561dd9;hb=8a90401507c7e02deb5fd8c7627c66a2f331c546;hp=dbcde7bc15b6eddaa4fbb8c24330a8822ef0cc07;hpb=ed5bc8a591243772ae85a116b1f531b2a7910c23;p=odoo%2Fodoo.git diff --git a/addons/account_followup/test/account_followup.yml b/addons/account_followup/test/account_followup.yml index dbcde7b..ceb7ec2 100644 --- a/addons/account_followup/test/account_followup.yml +++ b/addons/account_followup/test/account_followup.yml @@ -3,15 +3,23 @@ - !record {model: account.invoice, id: account.demo_invoice_0}: check_total: 14.0 -- + date_invoice: !eval "'%s-06-2' %(datetime.now().year)" + invoice_line: + - account_id : account.a_sale + name: 'Test PC' + quantity: 1.0 + journal_id: account.bank_journal + partner_id: base.res_partner_12 + reference_type: none +- !workflow {model: account.invoice, action: invoice_open, ref: account.demo_invoice_0} - I create a follow-up. - - !record {model: account.followup.print, id: account_followup_print_0}: + !record {model: account_followup.print, id: account_followup_print_0}: {} - I will process follow-ups - - !python {model: account.followup.print}: | + !python {model: account_followup.print}: | self.do_process(cr, uid, [ref("account_followup_print_0")], {"active_ids": [ref("account_followup.account_followup_print_menu")], "active_id": ref("account_followup.account_followup_print_menu"),}) \ No newline at end of file