Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

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
Buang

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

Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
1
Jul 21
3559
1
Okt 22
4588
0
Mei 22
2700
0
Jul 24
2015
1
Nov 20
4390