2 I start test Fund Raising which contain information about Donation or charity
5 I start by creating new Funds entry for donation for books to poor school children
6 with cost 500000.00 and category as "Learning And Education"
7 I make payment by Cheque so I make sure that the mode on fund is selected as cheque.
9 !record {model: crm.fundraising, id: crm_fundraising_donationforbookstopoorschoolchildren0}:
10 categ_id: crm_fundraising.categ_fund2
11 email_from: info@balmerinc.be
12 name: Donation for books to poor school children
13 partner_address_id: base.res_partner_address_1
14 partner_id: base.res_partner_9
15 planned_cost: 500000.0
16 section_id: crm.section_sales_department
17 type_id: crm_fundraising.type_fund2
19 I check that the Funds is in 'draft' state.
21 !assert {model: crm.fundraising, id: crm_fundraising_donationforbookstopoorschoolchildren0}:
24 I open Funds by click on "Open" button.
26 !python {model: crm.fundraising}: |
27 self.case_open(cr, uid, [ref('crm_fundraising_donationforbookstopoorschoolchildren0')])
29 I can close Funds by click on "Done" button.
31 !python {model: crm.fundraising}: |
32 self.case_close(cr, uid, [ref('crm_fundraising_donationforbookstopoorschoolchildren0')])