I am trying to get the purchase form to show my product manufacturer. I did managed to get the manufacturer code to show with :
'manufacturer_pref': fields.related('product_id', 'manufacturer_pref', type="char", relation="product.product", string="Manufacturer Code", store=True),
I am also trying to get the manufacturer related to this manufacturer_pref.
both fields are in the product.product table, (manufacturer and manufacturer_pref). Only thing that looks to be tricky, is that manufacturer is a mny2one field taken from res.partner :
'manufacturer' : fields.many2one('res.partner', 'Manufacturer'),
I have tried many ways but still, I cannot get the "Name" of the partner to show up. I do have the integer(id) related to the partner table in the product.product table under manufacturer field. But, I cannot get it to show and or being added in the purchase.order.line tableor form/report.
Can anyone help me dig it?