From c71b512ea1608bec03bb982cd86d1a2f0ed5183a Mon Sep 17 00:00:00 2001 From: Haresh Chavda Date: Thu, 8 Feb 2018 10:04:47 +0530 Subject: [PATCH] [IMP] Remove unnecessary code --- addons/account_discount/models/account_invoice.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/addons/account_discount/models/account_invoice.py b/addons/account_discount/models/account_invoice.py index 61be6c4c..3d269c77 100644 --- a/addons/account_discount/models/account_invoice.py +++ b/addons/account_discount/models/account_invoice.py @@ -117,8 +117,6 @@ class AccountInvoice(models.Model): @api.onchange('discount_amount') def onchange_discount_amount(self): - if self.discount_method == 'per': - return True values = self.get_maximum_per_amount() if self.discount < 0: raise Warning(_("Discount should be less than Gross Amount"))