Hello Community,
I have created one product(test) with two variants(color:white,black) and added internal reference to test in product.template.
I added internal reference for all two variants. But the problem is it hides internal reference field and also remove its value from product.template(test).
I want to manage internal reference for all(test,test:white,test:black). How can I achieve this? I tried to inherit _compute_default_code and search_read() but it doesn't work out.
Any idea how to achieve this?
Thanks in advance.
What is the purpose of the INTERNAL REFERENCE for the Template? Once you have Variants, the idea is that the product.template is no longer a product - it is just the place where all the common information for each variant is stored. You can't buy, sell or store a TEST, you can just buy, sell and store a TEST:WHITE and a TEST:BLACK.
In my case i need "Internal Reference" for both Template product(Test) and Variant product (Test : black).
How have you added the internal reference? If you extend product.template, that field should also exist in product.product (as product.product inherits from product.template). And in theory the field should not disappear.
Otherwise, I would suggest to work around the issue by accessing the product.template via product.product_tmpl_id. Or do you need to change the internal reference?