2 In order to test account followup module in OpenERP, I change the state of invoice to "open".
4 !workflow {model: account.invoice, action: invoice_open, ref: account.demo_invoice_0}
6 !record {model: account.followup.print, id: account_followup_print_0}:
7 date: !eval time.strftime('%Y-%m-%d')
8 followup_id: account_followup.demo_followup1
10 I select the followup to send it to the partner.
12 !python {model: account.followup.print}: |
13 self.do_continue(cr, uid, [ref("account_followup_print_0")], {"lang": 'en_US',
14 "active_model": "ir.ui.menu", "active_ids": [ref("account_followup.account_followup_print_menu")],
15 "tz": False, "active_id": ref("account_followup.account_followup_print_menu"),
18 I select partners whom I want to send followups.
20 !record {model: account.followup.print.all, id: account_followup_print_all_0}:
21 email_body: 'Date : %(date)s\n\nDear %(partner_name)s,\n\nPlease find in attachment
22 a reminder of all your unpaid invoices, for a total amount due of:\n\n%(followup_amount).2f
23 %(company_currency)s\n\nThanks,\n--\n%(user_signature)s\n%(company_name)s'
24 email_subject: Invoices Reminder
26 - base.res_partner_desertic_hispafuentes
29 I send a followup mail to partner.
31 !python {model: account.followup.print.all}: |
33 self.do_mail(cr, uid, [ref("account_followup_print_all_0")], {"lang": 'en_US',
34 "active_model": "ir.ui.menu", "active_ids": [ref("account_followup.account_followup_print_menu")],
35 "tz": False, "date": time.strftime('%Y-%m-%d'), "followup_id": ref("account_followup.demo_followup1"), "active_id": ref("account_followup.account_followup_print_menu"),