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
| 関連投稿 | 返信 | ビュー | 活動 | |
|---|---|---|---|---|
|
1
12月 25
|
404 | |||
|
3
9月 25
|
3828 | |||
|
0
8月 25
|
1223 | |||
|
1
8月 25
|
3629 | |||
|
2
7月 25
|
9253 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.