Dear Odoo users and Python experts,
In default Odoo when you use products in you have the option to use Internal Reference, within our multi-company system these are set as required.
We want the Internal Reference to be visible in the Product Line itself (both in Sales Order Lines and Purchase Order Lines). The adding of a related field that refers to product_id.default_code is not that difficult, and when you select a product, this automatically fills in.
However, we also want to be able to make a product via the Product Line, and thus when we fill in this new related field (x_studio_field_oNAcb) in the Sales Order Lines model, it should fill in the Internal Reference within the product itself as well.
The related field is named x_studio_field_oNAcb and belongs to Model 'Sales Order Line' and the Internal Reference is default_code and belongs to Model 'Product Template'
This connection is missing and I think this should be some kind of Automated Action that uses Python to read the x_studio_field_oNAcb, and refers to the default_code of the product made within the Product Line. (column 1)