コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
1348 ビュー

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

アバター
破棄
著作者 最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
1
2月 22
2821
1
9月 15
4716
0
8月 15
3679
1
3月 15
5059
2
3月 15
5265