tr5
This commit is contained in:
parent
10198069ca
commit
3e4b762227
|
|
@ -328,12 +328,17 @@ class AnnualPurchaseRequest(models.Model):
|
|||
return self._open_reason_wizard('manager_reject')
|
||||
|
||||
def action_send_to_committee(self):
|
||||
if self.rfq_count > 0:
|
||||
self.write({'sent_to_commitee': True})
|
||||
self.write({'state': 'committee'})
|
||||
else:
|
||||
raise UserError("لا يمكن الإرسال إلى اللجنة لأن عدد RFQs يساوي صفر.")
|
||||
for rec in self:
|
||||
if rec.rfq_count > 0:
|
||||
rec.write({
|
||||
'sent_to_commitee': True,
|
||||
'state': 'committee'
|
||||
})
|
||||
|
||||
rec.rfq_ids.write({'state': 'committee'})
|
||||
|
||||
else:
|
||||
raise UserError("لا يمكن الإرسال إلى اللجنة لأن عدد RFQs يساوي صفر.")
|
||||
def action_send_to_ssd(self):
|
||||
self.write({'state':'ssd'})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue