Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3573 Переглядів

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')
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
лют. 24
1003
3
трав. 25
3925
1
груд. 22
45393
1
лист. 17
3609
0
лют. 17
6