Skip to Content
Menú
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
Descartar

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
Descartar
Related Posts Respostes Vistes Activitat
1
de jul. 21
3444
1
d’oct. 22
4502
0
de maig 22
2591
0
de jul. 24
1955
1
de nov. 20
4163