revert purchase changes
This commit is contained in:
parent
07f1cb62ef
commit
fab6a38459
|
|
@ -49,7 +49,7 @@ class PurchaseRequest(models.Model):
|
|||
|
||||
def action_confirm(self):
|
||||
init_active = self.env['ir.module.module'].sudo().search([('name', '=', 'initial_engagement_budget'), ('state', '=', 'installed')], limit=1)
|
||||
init_budget = self.initial_engagement_activate
|
||||
init_budget = True if init_active else False
|
||||
if len(self.line_ids) == 0:
|
||||
raise ValidationError(_("Can't Confirm Request With No Item!"))
|
||||
if not self.department_id:
|
||||
|
|
|
|||
Loading…
Reference in New Issue