2 I will test base_contact for following cases:
3 *contacts unrelated to a partner,
4 *contacts working at several addresses (possibly for different partners),
5 *contacts with possibly different functions for each of its job's addresses
7 In order to assign language to contacts first I will create Language FR
10 !record {model: res.lang, id: res_lang_french0}:
12 date_format: '%m/%d/%Y'
17 time_format: '%H:%M:%S'
19 In order to check contacts first I will create contact unrelated to a partner
21 !record {model: res.partner.contact, id: res_partner_contact_williams0}:
25 - email: lwilliams@mydomain.com
27 phone: (+32).10.45.18.77
30 lang_id: res_lang_french0
31 mobile: (+32).10.45.18.77
34 Now in order to assign this contact to partner I will create one partner assign contact laura to this partner
36 !record {model: res.partner, id: res_partner_laurascompany0}:
40 phone: (+32).10.45.18.77
41 street: 23, street ways
45 - address_id: res_partner_address_1
47 contact_id: res_partner_contact_williams0
55 Now I will check that the new job is assigned properly to contact or not
57 !assert {model: res.partner.contact, id: res_partner_contact_williams0}:
60 In order to check contacts working at several addresses for different partners
61 I will create contact with 2 different addresses
63 !record {model: res.partner.contact, id: res_partner_contact_pauwels0}:
67 - address_id: base.main_address
70 - address_id: base.res_partner_address_3000
73 lang_id: res_lang_french0
74 mobile: (+32).23.44.32.12
78 In order to check one contact working at one partner with different functions
79 I will create contact with 2 different jobs with different function but the same address
81 !record {model: res.partner.contact, id: res_partner_contact_mortier0}:
85 - address_id: base.res_partner_address_1
88 - address_id: base.res_partner_address_1
91 lang_id: base_contact.res_lang_french0
92 mobile: (+32).10.45.18.77