3
Creating a res.partner record
5
!record {model: res.partner, id: res_partner_a0}:
17
I check the default delay
20
!python {model: res.partner}: |
21
partner = self.browse(cr, uid, ref("res_partner_a0"))
23
assert int(partner.default_delay) == (3+2), "default delay wrong : %s"%partner.default_delay
25
air_delay = self.get_transport_lead_time(cr, uid, [partner.id], 'air', context=context)
26
air_delay = air_delay[partner.id]
27
assert air_delay == 3, 'air delay is wrong - 3 - %s'%air_delay