2 In order to test account follow-up module in OpenERP, I change the state of invoice to "open".
4 !record {model: account.invoice, id: account.demo_invoice_0}:
6 date_invoice: 2012-06-2
8 - account_id : account.a_sale
11 journal_id: account.bank_journal
12 partner_id: base.res_partner_12
15 !workflow {model: account.invoice, action: invoice_open, ref: account.demo_invoice_0}
19 !record {model: account.followup.print, id: account_followup_print_0}:
22 I will process follow-ups
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"),})
27 # Test it has everything
29 # !assert {model: account.invoice, id: account.demo_invoice_0}:
30 # - reference_type = None
31 #!assert {model: res.partner, id: base.res_partner_12} :
33 #latest_followup_level_id == ref("demo_followup_line1")