Skip to content

Commit

Permalink
[FIX]bug:月末结账时报公司利润科目未配置
Browse files Browse the repository at this point in the history
  • Loading branch information
floraXiao committed Jul 31, 2018
1 parent f5c3782 commit e9325a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions finance/wizard/checkout_wizard.py
Expand Up @@ -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:
Expand Down

0 comments on commit e9325a0

Please sign in to comment.