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

In stock picking form, i'm having origin field with type char and many2one . I need to automatically fetch value from origin to many2one whenever it gets changed.

Any help is appreciatable!

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

Thank God, i found answer by myself.

class sale_order(models.Model):
_inherit = 'sale.order'
def action_confirm(self):
res = super(sale_order, self).action_confirm()
for rec in self:
rec.picking_ids.write({'m2o': rec.id})
return res
アバター
破棄
関連投稿 返信 ビュー 活動
3
9月 25
3382
0
8月 25
890
1
8月 25
3155
2
7月 25
8776
2
7月 25
5136