Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2036 Weergaven

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
Annuleer

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

Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
jul. 21
3488
1
okt. 22
4546
0
mei 22
2633
0
jul. 24
1973
1
nov. 20
4252