Commit 5a5a4e9e authored by Florent Cayré's avatar Florent Cayré
Browse files

make it easier to inherit from EditionFormView

branch : stable
parent 8dd94fa7310a
......@@ -99,6 +99,7 @@ class EditionFormView(FormViewMixIn, EntityView):
# add yes() so it takes precedence over deprecated views in baseforms,
# though not baseforms based customized view
__select__ = one_line_rset() & non_final_entity() & yes()
form_id = 'edition'
title = _('modification')
......@@ -109,7 +110,8 @@ class EditionFormView(FormViewMixIn, EntityView):
def render_form(self, entity):
"""fetch and render the form"""
form = self._cw.vreg['forms'].select('edition', self._cw, entity=entity,
form = self._cw.vreg['forms'].select(self.form_id, self._cw,
self.init_form(form, entity)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment