Skip to Content
Menu
Dette spørgsmål er blevet anmeldt

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
Kassér

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

Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
jul. 21
3536
1
okt. 22
4580
0
maj 22
2684
0
jul. 24
2007
1
nov. 20
4357