Merge pull request #38725 from barredterra/preview-rfq
This commit is contained in:
commit
da96578afb
@ -119,6 +119,15 @@ class RequestforQuotation(BuyingController):
|
|||||||
supplier.quote_status = "Pending"
|
supplier.quote_status = "Pending"
|
||||||
self.send_to_supplier()
|
self.send_to_supplier()
|
||||||
|
|
||||||
|
def before_print(self, settings=None):
|
||||||
|
"""Use the first suppliers data to render the print preview."""
|
||||||
|
if self.vendor or not self.suppliers:
|
||||||
|
# If a specific supplier is already set, via Tools > Download PDF,
|
||||||
|
# we don't want to override it.
|
||||||
|
return
|
||||||
|
|
||||||
|
self.update_supplier_part_no(self.suppliers[0].supplier)
|
||||||
|
|
||||||
def on_cancel(self):
|
def on_cancel(self):
|
||||||
self.db_set("status", "Cancelled")
|
self.db_set("status", "Cancelled")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user