Production Planning Tool error in v7

There seems to be a bug in the Production Planning Tool for v7. When I go to add an item to the tool (not using a sales order), I get the following error:

Traceback (most recent call last): File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 55, in application response = frappe.handler.handle() File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 19, in handle execute_cmd(cmd) File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 36, in execute_cmd ret =, **frappe.form_dict) File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 854, in call return fn(*args, **newargs) File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/", line 13, in search_link search_widget(doctype, txt, query, searchfield=searchfield, page_len=page_len, filters=filters) File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/", line 35, in search_widget searchfield, start, page_len, filters, as_dict=as_dict) File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 854, in call return fn(*args, **newargs) File "/home/frappe/frappe-bench/apps/erpnext/erpnext/controllers/", line 187, in item_query fcond=get_filters_cond(doctype, filters, conditions).replace('%', '%%'), File "/home/frappe/frappe-bench/apps/erpnext/erpnext/controllers/", line 25, in get_filters_cond query.build_filter_conditions(flt, conditions) File "/home/frappe/frappe-bench/apps/frappe/frappe/model/", line 247, in build_filter_conditions conditions.append(self.prepare_filter_condition(f)) File "/home/frappe/frappe-bench/apps/frappe/frappe/model/", line 315, in prepare_filter_condition if self.ignore_ifnull or not can_be_null: AttributeError: 'DatabaseQuery' object has no attribute 'ignore_ifnull'

I’m not sure if the error is due to issues with migrating from v6 to v7 (I am running a backed up version of our v6 database on a VM version of v7), or if this is a code bug.