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!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
|
3
thg 9 25
|
3382 | ||
|
|
0
thg 8 25
|
890 | ||
|
|
1
thg 8 25
|
3155 | ||
|
|
2
thg 7 25
|
8776 | ||
|
|
2
thg 7 25
|
5136 |