Odoo Help


How to autogenerate for internal reference (sku) for product variants?

on 3/17/16, 11:09 PM 1,458 views

Dear forum,

When creating product variants, currently odoo leave the internal reference field empty although we already fiil in the product template for the internal reference field with a value. How to setup or modify to make odoo can auto generate sku for internal reference base on internal reference in product template + attribute value?

for example : in product template form the internal reference  field entry =  PTEMP-X,  variant will be created on size attribute with attribute value S, M, L

I want odoo to generate and auto fill the internal reference field with PTEMP-X-S  (for size s variant), PTEMP-X-M (for size M variant) and PTEMP-X-L (for size L variant), how to do it? in this case actually i want to put unique sku for each variant item generated automatically.

Is there any module to install or any setting to be activated to achieve this? Please share.


Bun Hin

Aria Enterprise
On 2/7/17, 11:10 AM


We have almost the same requirement. Please let me know your solution. Thanks

On 3/22/16, 4:18 AM

Hi Bun Hin,

Currently by default in Odoo it is not possible to auto fill the Internal Reference field. For this customization would required. Kindly let if you require as I have a solution for your requirement

Hope this helps 


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

2 follower(s)


Asked: 3/17/16, 11:09 PM
Seen: 1458 times
Last updated: 2/7/17, 11:10 AM