fix
This commit is contained in:
parent
ae22d7e6eb
commit
442cee9536
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Reference in New Issue