Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e9325a0

Browse files
committed
[FIX]bug:月末结账时报公司利润科目未配置
1 parent f5c3782 commit e9325a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

finance/wizard/checkout_wizard.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ def button_checkout(self):
105105
}
106106
voucher_line.append(res)
107107
# 利润结余
108-
year_profit_account = self.company_id.profit_account
109-
remain_account = self.company_id.remain_account
108+
year_profit_account = self.env.user.company_id.profit_account
109+
remain_account = self.env.user.company_id.remain_account
110110
if not year_profit_account:
111111
raise UserError(u'公司本年利润科目未配置')
112112
if not remain_account:

0 commit comments

Comments
 (0)