Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
1340 Weergaven

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
Annuleer
Auteur Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
feb. 22
2819
1
sep. 15
4710
0
aug. 15
3675
1
mrt. 15
5058
2
mrt. 15
5264