Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2085 Lượt xem

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

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 21
3536
1
thg 10 22
4580
0
thg 5 22
2684
0
thg 7 24
2007
1
thg 11 20
4357