[merge]
[odoo/odoo.git] / addons / crm_claim / test / test_crm_claim.yml
1 - |
2   Now I check claims which contain customer claim information about document
3   related problem, product related problem. 
4 - |
5   I start by creating new claims for Damaged product as Value Claims with priority High and specify 
6   date of claim at which  claim is created.
7
8   !record {model: crm.claim, id: crm_claim_damagedproduct0}:
9     categ_id: crm_claim.categ_claim2
10     date: '2010-04-21 20:13:00'
11     email_from: info@balmerinc.be
12     name: 'Damaged product '
13     partner_address_id: base.res_partner_address_1
14     partner_id: base.res_partner_9
15     priority: '2'
16     section_id: crm.section_sales_department
17
18 - |
19   I check that the claims  is in 'draft' state.
20 -
21   !assert {model: crm.claim, id: crm_claim_damagedproduct0}:
22     - state == 'draft'
23 - |
24   I can change that stage by next button right on it
25 -
26   !python {model: crm.claim}: |
27     self.stage_next(cr, uid, [ref('crm_claim_damagedproduct0')])      
28 - |
29   I make this claim as Open
30 -
31   !python {model: crm.claim}: |
32     self.case_open(cr, uid, [ref('crm_claim_damagedproduct0')])  
33