跳至內容
選單
此問題已被標幟

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
3497
1
10月 22
4555
0
5月 22
2646
0
7月 24
1988
1
11月 20
4292