How to create a queue/sequence of doctypes?

Hi!

I want to create a sequence of doctypes and run this sequence for user. For example, user have to fill sequence of doctypes:

Sequence = [Project, Item, …]

  1. Show Project doctype
  2. After submit show Item doctype
  3. etc

Have you guys any idea how to do this?

You can use:

frappe.set_route("Form", "Item","New Item 1");

in on_submit hook of project.js
the same for the next doctype, you would set route in on_submit of the Item and so on.
You can also restrict the operation to only happen when a certain variable is passed so that chaining doesn’t happen always.