Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2125 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 21
3571
1
ต.ค. 22
4634
0
พ.ค. 22
2736
0
ก.ค. 24
2041
1
พ.ย. 20
4431