Duplicate the Stock Entry form

Hi everyone,

I’d like to duplicate the Stock Entry form to create three separate doctypes, each functioning like an independent Stock Entry but with specific purposes. The required doctypes are:

  1. Goods Inward – (Material Receipt purpose)

  2. Goods Outward – (Material Issue purpose)

  3. Goods Transfer – (Material Transfer purpose)

Each of these should behave exactly like the original Stock Entry, including proper stock posting and all related functionalities.

Has anyone implemented something similar or can guide on the best approach to achieve this?

Thanks in advance!

Backend works required. You have to duplicate Stock Entry doctype and modify or extend the stock_entry.py logic or use custom scripts to ensure that each transaction type is recorded in the right way.

Thanks for the suggestion. We implemented it as shortcut links that redirect to custom URLs with the stock_entry_type as a filter. Based on this approach, we have also customized the design accordingly.

Yes, its possible. We deployed the same logic for Sales Invoice and Sales Invoice Return icons on dashboard. When someone click Sales Invoice return, it will make Sales Invoice with is_return already checked to fill the other values. You can do this using JS or API URL Call, depends on your choice. In Summary, its possible and easy to deploy. No need to duplicate doctypes.

1 Like