Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2697 มุมมอง

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
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ก.ย. 25
3435
0
ส.ค. 25
919
1
ส.ค. 25
3211
2
ก.ค. 25
8827
2
ก.ค. 25
5158