From a3b70c5f70617c26ed2ae7be097ccdfa7d6ff773 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Mon, 27 Mar 2017 10:54:15 +0200 Subject: [PATCH] [FIX] account_check_printing: Print Checks When clicking on button "Print Checks" on "account.payment", if the check is not printed, the state of the "account.payment" doesn't have to be change in state "Sent". Now the state is changed in function do_print_checks which is overwritten in repository enterprise. opw:725626 --- addons/account_check_printing/account_payment.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/account_check_printing/account_payment.py b/addons/account_check_printing/account_payment.py index 23742fc73d0..4416347f680 100644 --- a/addons/account_check_printing/account_payment.py +++ b/addons/account_check_printing/account_payment.py @@ -101,7 +101,6 @@ class account_payment(models.Model): raise UserError(_("In order to print multiple checks at once, they must belong to the same bank journal.")) self.filtered(lambda r: r.state == 'draft').post() - self.write({'state': 'sent'}) if not self[0].journal_id.check_manual_sequencing: # The wizard asks for the number printed on the first pre-printed check