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
Zrušiť

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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
júl 21
3637
1
okt 22
4715
0
máj 22
2885
0
júl 24
2134
1
nov 20
4582