I've created a new offline payment module using this generator http://cedcommerce.com/magento-2-module-creator/payment-module
config.xml
....
<order_status>pending_payment</order_status>
....
system.xml
<field id="order_status" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="0">
<label>New Order Status</label><source_model>PackageName\ModuleName\Model\Config\Source\Order\Status\Pendingpayment</source_model>
</field>
I'want to set new order status to pending
or pending_payment
, but it set to processing when creating a order every time.