Custom title using frappe.model.set_value(doctype, name, fieldname, value)

i want custom title of format like QTN-00002/2017-18 - Customer Name - 15-08-2017) .

tried using {naming_series}-{YYYY}{customer}-{transaction_date}
can’t use in it.

you can use make_autoname method for it.

Check this example,

didn’t work… :frowning:

did u used in before_insert in

autoname should be used in instead

no i didn’t use it in… will try n check. Thanks for the reply