From e9325a0526f2b3b3e51a6b8ff8edcc4f42501d55 Mon Sep 17 00:00:00 2001 From: flora Date: Tue, 31 Jul 2018 16:42:29 +0800 Subject: [PATCH] =?UTF-8?q?[FIX]bug:=E6=9C=88=E6=9C=AB=E7=BB=93=E8=B4=A6?= =?UTF-8?q?=E6=97=B6=E6=8A=A5=E5=85=AC=E5=8F=B8=E5=88=A9=E6=B6=A6=E7=A7=91?= =?UTF-8?q?=E7=9B=AE=E6=9C=AA=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- finance/wizard/checkout_wizard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/finance/wizard/checkout_wizard.py b/finance/wizard/checkout_wizard.py index 9e21a845c..aa948bf2f 100644 --- a/finance/wizard/checkout_wizard.py +++ b/finance/wizard/checkout_wizard.py @@ -105,8 +105,8 @@ def button_checkout(self): } voucher_line.append(res) # 利润结余 - year_profit_account = self.company_id.profit_account - remain_account = self.company_id.remain_account + year_profit_account = self.env.user.company_id.profit_account + remain_account = self.env.user.company_id.remain_account if not year_profit_account: raise UserError(u'公司本年利润科目未配置') if not remain_account: