Add 'Print Order' on PO (there was already a 'Print RFQ button'...)

This commit is contained in:
Alexis de Lattre
2017-12-07 18:25:55 +01:00
parent 54bd62d2d9
commit 034f01287b
2 changed files with 8 additions and 17 deletions

View File

@@ -49,6 +49,11 @@ class PurchaseOrder(models.Model):
})
return res
def print_order(self):
action = self.env['report'].get_action(
self, 'purchase.report_purchaseorder')
return action
class StockPicking(models.Model):
_inherit = 'stock.picking'