From abbdaf0562d6021b0eb481e2645f344767c8b5e5 Mon Sep 17 00:00:00 2001 From: Camille Spiritus Date: Fri, 10 Mar 2023 15:24:32 +0000 Subject: [PATCH] [IMP] account: removed unused cash discount field in payment terms The last_day_for_discount field was forgotten in the payment term/cash discount update : https://github.com/odoo/odoo/pull/110274 Fixed by removing the forgotten crumb. closes odoo/odoo#114971 Signed-off-by: Laurent Smet --- addons/account/models/account_payment_term.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/account/models/account_payment_term.py b/addons/account/models/account_payment_term.py index dcdf3a71b51..e4ea2a3117c 100644 --- a/addons/account/models/account_payment_term.py +++ b/addons/account/models/account_payment_term.py @@ -36,7 +36,6 @@ class AccountPaymentTerm(models.Model): discount_percentage = fields.Float(string='Discount %', help='Early Payment Discount granted for this payment term', default=2.0) discount_days = fields.Integer(string='Discount Days', help='Number of days before the early payment proposition expires', default=10) - last_day_for_discount = fields.Date(string='Last date to benefit from the discount', compute='_compute_last_discount_date') early_pay_discount_computation = fields.Selection([ ('included', 'On early payment'), ('excluded', 'Never'),