Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd

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')
Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
feb. 24
982
3
mei 25
3914
1
dec. 22
45388
1
nov. 17
3587
0
feb. 17
6