Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2660 Widoki

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!

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
wrz 25
3382
0
sie 25
890
1
sie 25
3155
2
lip 25
8776
2
lip 25
5136