Ir al contenido
Menú
Se marcó esta pregunta

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.

Mejor respuesta

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
Publicaciones relacionadas Respuestas Vistas Actividad
1
jul 21
3452
1
oct 22
4502
0
may 22
2591
0
jul 24
1956
1
nov 20
4166