If I change a lot from one line of a mrp production to another lot (or sale delivery), nothing happens
class StockMoveCustom(models.Model):
_inherit = 'stock.move'
@api.onchange('lot_ids')
def _onchange_lot_ids(self):
_logger.info(f'Cambio de lote')
https://www.odoo.com/forum/help-1/odoo-onchange-function-on-one2many-field-134601#:~:text=Here%20i%20have%20created%20one,mapped%2C%20search%2C%20browse%20etc.
Reffer this