test: sets is_purchase_item while item creation

This commit is contained in:
walstanb 2021-03-27 10:15:23 +05:30 committed by Sagar Vora
parent 52403c537b
commit 225c64a1ad

View File

@ -898,7 +898,7 @@ class TestPurchaseInvoice(unittest.TestCase):
acc_settings.submit_journal_entries = 1
acc_settings.save()
item = create_item("_Test Item for Deferred Accounting")
item = create_item("_Test Item for Deferred Accounting", is_purchase_item=True)
item.enable_deferred_expense = 1
item.deferred_expense_account = deferred_account
item.save()