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

I've got a button working to print a pdf, how do I write an if condition to chose a pdf that's assigned to my product.product id?

I've got like 13 pdfs for each one, and that button is gonna print one of these according to the product.product id


I only have this function to print one pdf


@api.multi

    def print_work_order(self):
        return self.env['report'].get_action(self, 'orden_trabajo.orden_de_trabajo')
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 2 24
989
3
thg 5 25
3919
1
thg 12 22
45388
1
thg 11 17
3599
0
thg 2 17
6