updated condition
This commit is contained in:
parent
d7ecb60c7e
commit
d459a19b09
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue