Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2024 Zobrazení

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
Zrušit

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

Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
čvc 21
3473
1
říj 22
4515
0
kvě 22
2613
0
čvc 24
1963
1
lis 20
4226