commit
7b06f79c84
|
|
@ -165,6 +165,8 @@ class PurchaseRequest(models.Model):
|
|||
self.department_id = self._default_emp().department_id.id
|
||||
|
||||
def action_submit(self):
|
||||
if len(self.line_ids) == 0:
|
||||
raise ValidationError(_("Can't Confirm Request With No Item!"))
|
||||
self.write({'state': 'direct_manager'})
|
||||
|
||||
def action_confirm(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue