Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jcdrubay opened this issue Jun 22, 2017 · 2 comments
Open

Comments

@jcdrubay
Copy link

jcdrubay commented Jun 22, 2017

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

@ghost
Copy link

ghost commented Jan 21, 2018

Hello,
make some changes in medical_appointment, can you please check

@jimmyec
Copy link

jimmyec commented Feb 13, 2018

Hello jcdrubay, make some changes in medical_appointment in my fork, please review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants