First of all, im fairly new to odoo development.
I want to write some sort of auto emailing template in code inheriting stock.picking model. Basically i need to find and compare move_line_ids from purchase_order_line and stock_picking to see which are equal. To see if the delivery is partially delivered or fully delivered. For every line that has been delivered i want to send an email with the informations from purchase_order_line to the salesperson notifiying him that a product from one of his customers has been restocked.
Maybe someone can give a start, i dont really know how to.