Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
1358 Näkymät

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
Hylkää
Tekijä Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
helmik. 22
2824
1
syysk. 15
4721
0
elok. 15
3688
1
maalisk. 15
5065
2
maalisk. 15
5267