Skip to Content
Menu
You need to be registered to interact with the community.
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
Opusti

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
jul. 21
3496
1
okt. 22
4555
0
maj 22
2645
0
jul. 24
1986
1
nov. 20
4285