跳至内容
菜单
此问题已终结

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

形象
丢弃

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

最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
1
7月 21
3521
1
10月 22
4567
0
5月 22
2668
0
7月 24
2004
1
11月 20
4333