2010-06-08 12:47:44 +00:00
|
|
|
-
|
2012-06-26 07:10:44 +00:00
|
|
|
In order to test account follow-up module in OpenERP, I change the state of invoice to "open".
|
2011-05-11 05:36:07 +00:00
|
|
|
-
|
2011-12-19 13:18:23 +00:00
|
|
|
!record {model: account.invoice, id: account.demo_invoice_0}:
|
|
|
|
check_total: 14.0
|
2013-01-02 09:34:05 +00:00
|
|
|
date_invoice: !eval "'%s-06-2' %(datetime.now().year)"
|
2012-10-31 11:29:07 +00:00
|
|
|
invoice_line:
|
|
|
|
- account_id : account.a_sale
|
2012-11-02 09:36:31 +00:00
|
|
|
name: 'Test PC'
|
2012-10-31 11:29:07 +00:00
|
|
|
quantity: 1.0
|
|
|
|
journal_id: account.bank_journal
|
|
|
|
partner_id: base.res_partner_12
|
|
|
|
reference_type: none
|
|
|
|
-
|
2011-12-14 13:01:48 +00:00
|
|
|
!workflow {model: account.invoice, action: invoice_open, ref: account.demo_invoice_0}
|
2010-06-08 12:47:44 +00:00
|
|
|
-
|
2012-06-26 07:10:44 +00:00
|
|
|
I create a follow-up.
|
2010-06-08 12:47:44 +00:00
|
|
|
-
|
2012-11-27 16:53:17 +00:00
|
|
|
!record {model: account_followup.print, id: account_followup_print_0}:
|
2011-12-19 12:16:33 +00:00
|
|
|
{}
|
2012-10-30 11:05:21 +00:00
|
|
|
-
|
|
|
|
I will process follow-ups
|
|
|
|
-
|
2012-11-27 16:53:17 +00:00
|
|
|
!python {model: account_followup.print}: |
|
2012-11-21 14:49:32 +00:00
|
|
|
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"),})
|