[IMP]pms: allowed change prices in folio sale lines with invoice reversed

This commit is contained in:
Darío Lodeiros
2023-03-08 11:32:02 +01:00
parent 596b9ea568
commit ea832ba9bc

View File

@@ -1089,7 +1089,7 @@ class FolioSaleLine(models.Model):
return res
def unlink(self):
if self.invoice_lines:
if self.qty_invoiced > 0:
raise UserError(
_(
"You cannot delete a sale order line once a "