Odoo Help


How to change name generator syntax - product_variant_multi

Adam Pajkin
on 3/24/16, 5:04 AM 170 views

I have Dimension types Width with options 180,190Profile with options 50,55 and Diameter with option R15.

The default name generating syntax is  

[_o.dimensionid.name_] - [_o.optionid.code_]

Which generates names like this:

Width - 180 Profile - 50 Diameter - R15Width - 180 Profile - 55 Diameter - R15Width - 190 Profile - 50 Diameter - R15Width - 190 Profile - 55 Diameter - R15

I want the name generator to generate names like this:

180/50 R15

180/55 R15

190/50 R15

190/55 R15 

So the code would be something like:

[_Width_]/[_Profile_] [_Diameter_]

Anyone here who understands the name generating syntax who can help me? Thanks

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 3/24/16, 5:04 AM
Seen: 170 times
Last updated: 3/24/16, 9:14 AM