Skip to content

Commit

Permalink
[FIX]test写法错误
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodERPJeff committed Mar 30, 2016
1 parent 8b471b3 commit 8102471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion money/tests/test_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_create_delete(self):
'amount':10.0,
})
# 如果公司的 draft_invoice参数未设,发票自动审核
if self.env.User.company_id.draft_invoice:
if self.env.ref('base.main_company').draft_invoice:
self.assertEqual(invoice.state, 'draft')
# 发票审核
invoice.money_invoice_done()
Expand Down

0 comments on commit 8102471

Please sign in to comment.