This commit is contained in:
eslamabady 2024-07-15 12:27:07 +03:00
parent ae22d7e6eb
commit 442cee9536
1 changed files with 0 additions and 5 deletions

View File

@ -293,11 +293,6 @@ class PurchaseOrderCustom(models.Model):
fields.Date.from_string(x.date_from) <= fields.Date.from_string(
rec.date_order) <= fields.Date.from_string(x.date_to))
super(PurchaseOrderCustom, rec).button_approve()
def print_quotation(self):
if self.state in ['draft','wait']:
self.write({'state': "sent"})
return self.env.ref('purchase.report_purchase_quotation').report_action(self)
def action_rfq_send(self):
res=super(PurchaseOrderCustom,self).action_rfq_send()
if self.state=='wait':