make product
This commit is contained in:
parent
5ca21f77ea
commit
31b3bb0a02
|
|
@ -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