Doing two process at one time

Hello,

I have created here one server script with event “After Save” of the Customer doctype. Here problem is i am creating Price List and immediately adding Item Price for that Price List so there i am getting one message [ Could not find Price List: MPL-Dell ]. How can do this at same time adding Price list and Item Price entries??

Hi @pm23,

Please remove line 23 and instead add it to line 13.
Because if a price list is not created, it won’t make sense how to set it in the Item Price.

Thank You!