You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I installed frappe, ERPNext and healthcare, dev version for all of them was installed by default. I've changed the versions using bench switch-to-branch version-15 (I tried version-14 as well, but it failed).
After switching branch, I've also run: bench update --patch, and just for making sure I also ran bench migrate.
But still the issue persists.
NOTE: I've not changed any code inside the healthcare app after installation. I've also tried running bench reinstall previously(when I had dev versions).
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 114, in application
response = frappe.api.handle(request)
File "apps/frappe/frappe/api/__init__.py", line 49, in handle
data = endpoint(**arguments)
File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call
return frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 49, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/__init__.py", line 1808, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/utils/typing_validations.py", line 32, in wrapper
return func(*args, **kwargs)
File "apps/frappe/frappe/desk/form/save.py", line 39, in savedocs
doc.save()
File "apps/frappe/frappe/model/document.py", line 340, in save
return self._save(*args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 362, in _save
return self.insert()
File "apps/frappe/frappe/model/document.py", line 293, in insert
self.run_before_save_methods()
File "apps/frappe/frappe/model/document.py", line 1127, in run_before_save_methods
self.run_method("validate")
File "apps/frappe/frappe/model/document.py", line 979, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1362, in composer
return composed(self, method, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1340, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "apps/frappe/frappe/model/document.py", line 976, in fn
return method_object(*args, **kwargs)
File "apps/healthcare/healthcare/healthcare/doctype/patient_appointment/patient_appointment.py", line 40, in validate
self.validate_overlaps()
File "apps/healthcare/healthcare/healthcare/doctype/patient_appointment/patient_appointment.py", line 112, in validate_overlaps
overlapping_appointments = frappe.db.sql(
File "apps/frappe/frappe/database/postgres/database.py", line 220, in sql
return super().sql(modify_query(query), modify_values(values), *args, **kwargs)
File "apps/frappe/frappe/database/database.py", line 236, in sql
self._cursor.execute(query, values)
psycopg2.errors.SyntaxError: syntax error at or near "duration"
LINE 8: ...t_time<'10:00:00' AND appointment_time + INTERVAL duration M...
^
Information about bug
When I installed frappe, ERPNext and healthcare, dev version for all of them was installed by default. I've changed the versions using
bench switch-to-branch version-15
(I triedversion-14
as well, but it failed).After switching branch, I've also run:
bench update --patch
, and just for making sure I also ranbench migrate
.But still the issue persists.
Module
Rehab & Physiotherapy
Version
pg_config --version
Installation method
manual install
Relevant log output / Stack trace / Full Error Message.
Route
Traceback
Request Data
Response Data
The text was updated successfully, but these errors were encountered: