[IMP] sale: disable logo check before printing
When the logo was not set and you tried to print a quotation, a modal form opened and offered you to edit the company data. You then had to save, close the modal and retry to print. Now the quotation is printed without the logo.
This commit is contained in:
committed by
Yannick Tivisse
parent
d1ec3306b8
commit
15f498ebbd
@@ -397,7 +397,9 @@ class SaleOrder(models.Model):
|
||||
@api.multi
|
||||
def print_quotation(self):
|
||||
self.filtered(lambda s: s.state == 'draft').write({'state': 'sent'})
|
||||
return self.env.ref('sale.action_report_saleorder').report_action(self)
|
||||
|
||||
return self.env.ref('sale.action_report_saleorder')\
|
||||
.with_context({'discard_logo_check': True}).report_action(self)
|
||||
|
||||
@api.multi
|
||||
def action_view_invoice(self):
|
||||
|
||||
Reference in New Issue
Block a user