Hello, I'm using Odoo 13 Community Edition.
In the sale order form view i can specify each sale order with customer reference (client_order_ref) and of course with a customer (partner_id).
In the manufacturing order tree view (mrp_production_tree_view) i want to group the orders by the customer reference from the sale order, so it need to be transferred to a custom field (mo_order_ref) and i want to transfer the partner_id to a custom field in the manufacturing order too (costumer_id).
My problem is that the manufacturing orders are created from the sale order automatically, so i think i have to change it in the stock.rule model, but where and what?
The best solution for me would be if i know how to add these things at "propagation" in the stock rules. I found the mothod def _get_stock_move_values in stock_rule.py, i think that could be nearly what i have to edit.
Thanks in advance.