Skip to Content
मेन्यू
This question has been flagged
1 Reply
1346 Views

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')

Avatar
Discard
Author Best Answer

Thanks

I have noticed also the ODOO original method "_onchange_lot_ids" also is not called, instead is called the "_onchange_move_line_ids" method (when I change a lot to another lot)

I don't need to create new fields, it is Ok for me to overwrite stock.move."write" , I just wanted to know if I did something wrong

Avatar
Discard
Related Posts Replies Views Activity
1
फ़र॰ 22
2820
1
सित॰ 15
4715
0
अग॰ 15
3677
1
मार्च 15
5059
2
मार्च 15
5265