updated condition

This commit is contained in:
projectsodoo 2020-12-20 09:02:55 +05:30
parent d7ecb60c7e
commit d459a19b09
1 changed files with 1 additions and 2 deletions

View File

@ -61,9 +61,8 @@ class ProjectCreateExpense(models.TransientModel):
def action_create_project_expense(self):
""" Private implementation of generating the sales order """
expenses_amt = self.expenses_amt
if self.expenses_amt < 0:
if self.expenses_amt > 0:
expenses_amt = self.expense_amount * -1
if self.expenses_amt == 0:
raise ValidationError(_("Amount shoud not be zero"))