Hi, after updating we found this error:
AttributeError: ‘BaseDocument’ object has no attribute ‘against_sales_order’
Any ideas? Here is the complete log:
Executing erpnext.patches.v4_1.fix_jv_remarks in our-erp.com (erp4)
Traceback (most recent call last):
File "/root/frappe-bench/env/bin/frappe", line 9, in <module>
load_entry_point('frappe==4.0.0', 'console_scripts', 'frappe')()
File "/root/frappe-bench/apps/frappe/frappe/cli.py", line 39, in main
ret = run(fn, args)
File "/root/frappe-bench/apps/frappe/frappe/cli.py", line 83, in run
out = globals().get(fn)(**args)
File "/root/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
return fn(*args, **new_kwargs)
File "/root/frappe-bench/apps/frappe/frappe/cli.py", line 422, in latest
frappe.modules.patch_handler.run_all()
File "/root/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 25, in run_all
if not run_single(patchmodule = patch):
File "/root/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 50, in run_single
return execute_patch(patchmodule, method, methodargs)
File "/root/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 66, in execute_patch
frappe.get_attr(patchmodule.split()[0] + ".execute")()
File "/root/frappe-bench/apps/erpnext/erpnext/patches/v4_1/fix_jv_remarks.py", line 13, in execute
jv.create_remarks()
File "/root/frappe-bench/apps/erpnext/erpnext/accounts/doctype/journal_voucher/journal_voucher.py", line 237, in create_remarks
if d.against_sales_order and d.credit:
AttributeError: 'BaseDocument' object has no attribute 'against_sales_order'