def METHOD_NAME(self):
    for move in self:
        if move.move_type in ("out_invoice", "in_refund"):
            move.payment_mode_filter_type_domain = "inbound"
        elif move.move_type in ("in_invoice", "out_refund"):
            move.payment_mode_filter_type_domain = "outbound"
        else:
            move.payment_mode_filter_type_domain = False