68
56
Change the source location to Service location
70
58
!python {model: stock.move}: |
72
60
service_location = self.pool.get('stock.location').search(cr, uid, [('service_location', '=', True)], context=context)
73
61
assert service_location, 'No Service Location available'
74
62
service_location = service_location[0]
77
65
self.write(cr, uid, ref("stock_move_1"), {'location_id': service_location} ,context=context)
79
67
# ok the constraint has been raised
82
70
assert False, 'The constraint: "You cannot select Service Location as Source Location." has not been triggered.'