Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
1364 Visninger

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
Kassér
Forfatter Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
feb. 22
2826
1
sep. 15
4731
0
aug. 15
3696
1
mar. 15
5066
2
mar. 15
5267