Skip to content

Commit

Permalink
Fix 404 after patient create
Browse files Browse the repository at this point in the history
  • Loading branch information
lasley committed Jul 27, 2017
1 parent ed33261 commit 75279b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions website_portal_medical_patient/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@

class WebsiteMedical(WebsiteMedical):

@http.route(
['/my/medical', '/medical'],
type='http',
auth="user",
website=True,
)
@http.route()
def my_medical(self, **kw):
""" Add patients to medical account page """
response = super(WebsiteMedical, self).my_medical()
Expand Down
2 changes: 1 addition & 1 deletion website_portal_medical_patient/views/patients_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
method="post"
enctype="multipart/form-data"
data-model_name="medical.patient"
t-att-data-success_page="success_page or '/my/medical/'"
data-success_page="/my/medical/"
class="s_website_form form-horizontal container-fluid mt32">
<input type="hidden" name="csrf_token" t-att-value="request.csrf_token()" />
<input type="hidden" name="parent_id" t-att-value="patient.parent_id.id or partner.id" />
Expand Down

0 comments on commit 75279b4

Please sign in to comment.