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
3494
1
okt 22
4552
0
máj 22
2642
0
júl 24
1982
1
nov 20
4274