Fixed and replaced Record with RecordForm in the context of the dummy new record template in the txn_form view in the accounting application.

This commit is contained in:
依瑪貓 2020-08-12 13:32:33 +08:00
parent 05892b9655
commit d190c35754

View File

@ -834,7 +834,7 @@ def txn_form(request, txn_type, txn=None):
form.credit_records.append(RecordForm())
else:
form = make_txn_form_from_model(txn_type, txn)
new_record_context = {"record": Record(),
new_record_context = {"record": RecordForm(),
"record_type": "TTT",
"no": "NNN",
"order": ""}