[IMP] clean-up fp
[odoo/odoo.git] / addons / account_followup / test / account_followup.yml
1 -
2   In order to test account follow-up module in OpenERP, I change the state of invoice to "open".
3 -
4   !record {model: account.invoice, id: account.demo_invoice_0}:
5     check_total: 14.0
6     date_invoice: 2012-06-2
7     invoice_line:
8       - account_id : account.a_sale
9         name: 'Test PC'
10         quantity: 1.0
11     journal_id: account.bank_journal
12     partner_id: base.res_partner_12
13     reference_type: none    
14 -   
15   !workflow {model: account.invoice, action: invoice_open, ref: account.demo_invoice_0}
16 -
17   I create a follow-up.
18 -
19   !record {model: account.followup.print, id: account_followup_print_0}:
20     {}
21
22   I will process follow-ups
23
24   !python {model: account.followup.print}:  |
25     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"),})