set create a new customer command from doctypes to pass anything from customer field. #8

Closed
opened 2026-05-05 11:32:05 +00:00 by norman · 1 comment
Owner

When clicking create a new customer from the customer search field on a doctype like a sales order the create command should pop up the new customer form with whatever was in the search box as the name for the customer being created. Also, when create new customer is clicked the new customer should be assigned to the doctype the form was spauned from.
The default customer quick entry form already does this so we should just need to copy what is being done there.

When clicking create a new customer from the customer search field on a doctype like a sales order the create command should pop up the new customer form with whatever was in the search box as the name for the customer being created. Also, when create new customer is clicked the new customer should be assigned to the doctype the form was spauned from. The default customer quick entry form already does this so we should just need to copy what is being done there.
Member

Achieved this by added route options logic. Basically, catches the doctype and customer name value from search when the quick entry form is spawned.

Achieved this by added route options logic. Basically, catches the doctype and customer name value from search when the quick entry form is spawned.
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nsinnovations/ns_erpnext_app#8