def METHOD_NAME(self):
    """Check location autofill from SO partner
    SO partner is not an FSM location defined, but location1 is linked to
    the partner itself => expect location 1 (because of ordering)
    """
    self.partner.fsm_location = False
    self.location1.partner_id = self.partner
    self.location2.partner_id = self.shipping_partner
    self.location3.partner_id = self.commercial_partner
    with Form(self.env["sale.order"]) as so_form:
        so_form.partner_id = self.partner
    so = so_form.save()
    self.assertEqual(so.fsm_location_id, self.location1)