コンテンツへスキップ
メニュー
この質問にフラグが付けられました

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
3519
1
10月 22
4562
0
5月 22
2663
0
7月 24
2002
1
11月 20
4324