Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2056 Visualizzazioni

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
Abbandona

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

Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
lug 21
3507
1
ott 22
4560
0
mag 22
2660
0
lug 24
2002
1
nov 20
4320