revert purchase changes

This commit is contained in:
Esraa-Exp 2025-02-05 10:11:40 +02:00
parent 07f1cb62ef
commit fab6a38459
1 changed files with 1 additions and 1 deletions

View File

@ -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: