Skip to content

In Medical Appointment calendar views, appointments are not visible #225

@jcdrubay

Description

@jcdrubay

The current code ignores the field duration (I think because we defined the attribute date_stop):

Suggested solutions:

  • [1] remove the attribute date_stop from the calendar view
  • [2] ensure that the field date_end is computed

I think that we should go with [1] and also completely remove the field date_end from the model medical.appointment (I am not sure if this would have any other impact, but they are probably not big as this field is currently no set and not settable (not available in form view))

Related code:

            <calendar string="Medical Appointments"
                      color="physician_id"
                      date_start="appointment_date"
                      date_stop="date_end"
                      mode="week">
                <field name="patient_id" />
                <field name="physician_id" />
                <field name="duration" />
            </calendar>

Tested in branch release/10, commit 6821131

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions