Se rendre au contenu
Menu
Cette question a été signalée

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
Ignorer

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

Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
juil. 21
3501
1
oct. 22
4557
0
mai 22
2653
0
juil. 24
1992
1
nov. 20
4308