Currently, in odoo, there is no way to generate automatically internal reference with customization. Our this module will provide that feature, where you can create a pattern for internal reference of product. You can create or customize internal reference using the product name, sequence, category, attribute with separators. Also, you can set auto-generate internal references while creating a new product.
5) Go to Apps menu and click on ‘Update Modules List’, Press Update Button.
6) In the search bar, search ‘sh_internal_reference_generator’.
7) Click on ‘Install’ to install it.
Workflow
General Setting: Enable 'Product Internal Reference Generator Feature' then after you can see all the configuration as shown in the below image. Click 'Generate Internal reference for all product' button then generate an internal reference for all product which is available.
Select that product, which references you need to create or update and click 'Auto Generate Internal Reference'.
After clicking that action this wizard will popup where you can select 'Replace Existing'(*If you need to update the internal reference for only selected products.) and click 'Generate'.
Internal Reference is created as you can see.
Easy to update or create an internal reference for product variants.
Support
You will get free support and assistance in case of any issues