Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

base_custom_info & product_custom_info pickle

by
Data Dance s.r.o., Radovan Skolnik
- 01/03/2022 15:21:27
Hello,

I am using combination of base_custom_info and product_custom_info to track 
information of technical paramaters for Product Templates (product.template). 
We also use Product Variants (product.product) where custom.info.property is 
the name of the parameter and custom.info.value is used as the value for it. 
Now usually most of the technical parameters are the same for all Product 
Variants. But in some cases the Product Variants differ in one or two of these. 
So what I'd need is to assign the common values to Product Template and only 
the differing to Product Variant.

The issue is custom.info.property takes related model from 
custom.info.template and that links by Many2one to ir.model. So I cannot 
assign the same custom.info.property(ies) to product.product as I did for 
product.template.

I am sure there can be devised some clever Python way to overcome this without 
breaking lots of stuff but nohing comes to my mind. Would anyone care to share 
any ideas on how to tackle this?

Thank you very much

Best regards

	Radovan Skolnik