[FIX] web: force load record after reload page
authorMartin Trigaux <mat@openerp.com>
Fri, 3 Oct 2014 07:29:07 +0000 (09:29 +0200)
committerMartin Trigaux <mat@openerp.com>
Fri, 3 Oct 2014 07:29:22 +0000 (09:29 +0200)
commit6349048ba0e5e74c74e783ffce8c3c0083d2f060
tree6dd5ca2a29b1d1aa187db47bcd9992ecf795d6d7
parent6d509c0c6b671ba4e063f57000de6b8f30b7c383
[FIX] web: force load record after reload page

When reloading a page, the _actualize_mode is called before the record is loaded and the form is displayed partially in edit mode (o2m fields with delete/add icons).
This patch forces to trigger a load_record when the datarecord has not been loaded yet in the do_show merthod (opw 607910)
addons/web/static/src/js/view_form.js