This commit is contained in:
eslamabady 2024-07-18 01:06:17 +03:00
parent 134c155e83
commit 7736eecc83
1 changed files with 0 additions and 1 deletions

View File

@ -55,7 +55,6 @@ class PurchaseRequest(models.Model):
if not self.employee_id.department_id:
raise ValidationError(_("Choose A Department For this Employee!"))
line_ids = []
print("hereeeeeeee",self.line_ids.filtered(lambda line: line.qty_purchased > 0).mapped("product_id.name"))
for line in self.line_ids.filtered(lambda line: line.qty_purchased > 0):
line_ids.append((0, 6, {
'product_id': line.product_id.id,