Skip to Content
Menu
This question has been flagged

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
Discard

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

Best Answer

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
Discard
Related Posts Replies Views Activity
1
Jul 21
3637
1
Oct 22
4713
0
May 22
2884
0
Jul 24
2133
1
Nov 20
4582