Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
2054 Visualizações

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
Cancelar

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

Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
jul. 21
3506
1
out. 22
4559
0
mai. 22
2658
0
jul. 24
1999
1
nov. 20
4317