String manipulation in naming series

I have my naming series include the company name. SO-.company.- , but I only want to use the last two letters on company. is there a way to do that??

You can define an autoname method in the py file to programmatically set the name. See Contact doctype for reference.

why the contact doctype?

Why not pick and choose yourself!

frappe@erpnext:~/frappe-bench$ find . -name *.py | xargs grep ‘autoname’

I’m not a python programmer and I honestly have no idea how to do this. :frowning:

Contact was just an example. Look at any doctype which has an autoname method.
You can do a search for “autoname” in your text editor.

‘I honestly have no idea how to do this’

I often tell myself that too @Nathan

That’s the fun of learning it’s all about challenging yourself

From what I see you could show me a thing of two in event programming…