[FIX] purchase: Print RFQ and status does not change

Due to this commit: 98cb4719db

When printing a RFQ, the status of the quotation didn't change in SENT.

opw:1849139
This commit is contained in:
Goffin Simon
2018-05-17 15:38:27 +02:00
parent f8d0efee92
commit eac4c0badf
+1
View File
@@ -323,6 +323,7 @@ class PurchaseOrder(models.Model):
@api.multi
def print_quotation(self):
self.write({'state': "sent"})
return self.env.ref('purchase.report_purchase_quotation').report_action(self)
@api.multi