Hello there :)
I've managed to add some custom code to get some extra fields onto the production order and it's report. Now I thought it would be better if one of the fields would also be on the bill of material, but I have no idea how to get the data from there to the new production order, which is later based on this BoM.
It is a many2one field for which I created a custom model:
class FinishTypes(models.Model): |
I then added this field to the mrp.production model:
class POfinishtypes(models.Model): |
And then I added this field to the PO form and report.
Do I have to make a similar field on the BoM? And if so, how do I get it's data to the production order's draft? I am obviously not a pro developer...
We use Odoo 14 Enterprise, btw.