I have added one Order Type in Sales Order form. We have one flow in which factory send “Sample Order”.
But when I will save sales order using Order Type Sample Order it shows validation message that
"Order Type must be one of “Sales”, “Maintenance”, “Shopping Cart”
Is there any effective solution to add order type without affecting selling_controller.py
Business logic is tightly integrated to “Order Type” field, hence we did not allow to customize it.
Why you do not add a custom field “Is Sample Order” with fieldtype as “Check”? It will help you to identify “Sample Order”.
I need to separate normal sales order from sample order.
Your suggestion is perfectly work for me.
On Fri, Dec 12, 2014 at 5:03 PM, Nabin Hait <firstname.lastname@example.org> wrote:
Business logic is tightly integrated to "Order Type" field, hence we did not allow to customize it.
Why you do not add a custom field "Is Sample Order" with fieldtype as "Check"? It will help you to identify "Sample Order".
To respond, reply to this email or visit http://discuss.frappe.io/t/how-to-add-new-sales-order-type/4050/2 in your browser.
To unsubscribe from these emails, visit your user preferences.