İçereği Atla
Menü
Bu soru işaretlendi

I need help in code, How do I create Purchase Order copy(Sub Purchase Order) after clicking Receive Products Button on Purchase App. I'm new in Odoo so my coding skill is not that good

Avatar
Vazgeç

What is your actual scenario? Maybe there will be a workaround in Odoo.

En İyi Yanıt

Hi,

You can use self.copy in the button action of the Receive Products.

Try this example

def action_view_picking(self):
purchase_copy = self.copy()
return self._get_action_view_picking(self.picking_ids)

Regards

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Tem 21
3523
1
Eki 22
4575
0
May 22
2671
0
Tem 24
2004
1
Kas 20
4339