跳至內容
選單
此問題已被標幟
3570 瀏覽次數

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')
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
2月 24
991
3
5月 25
3921
1
12月 22
45390
1
11月 17
3605
0
2月 17
6