~therp-nl/ocb-web/6.1-o2m_form_mode_first_workaround

  • Committer: Stefan Rijnhart
  • Date: 2015-02-27 19:29:58 UTC
  • Revision ID: stefan@therp.nl-20150227192958-80g6o0x1ae3vw8a3
[FIX] Allow to display an empty embedded one2many view which is
initialized in form view (i.e. mode="form,tree"). In this case,
the dataset index ends up being negative. We use the same strategy
of the editable form, which is an ugly hack in this case: render a new,
unstored record instead.
If you do not actually mandate the presence of any records and use this
hack not only as a workaround while your database is fully populated, you
will encounter another problem: switching the main view to form view will
inevitably create a new item in the one2many widget which you can only
avoid saving if you switch the o2m record to list view and delete it. 
Filename Latest Rev Last Changed Committer Comment Size
..
addons 1 13 years ago Antony Lesuisse openobject is dead long live to openerpweb --HG-- Diff
doc 57 13 years ago Xavier Morel [ADD] basic Sphinx documentation skeleton --HG-- Diff
.bzrignore 2232.1.12 12 years ago Frédéric van der Essen [IMP] ignore vim session files 96 bytes Diff Download File
babel.cfg 2200 12 years ago Xavier Morel [IMP] remove xmljs extractor from babel conf file 148 bytes Diff Download File
File gen_translations.sh 2102.1.5 12 years ago Olivier Dony [IMP] gen_translations: better error msg when msgc 1.5 KB Diff Download File
LICENSE 1 13 years ago Antony Lesuisse openobject is dead long live to openerpweb --HG-- 33.7 KB Diff Download File
logging.json 1116 12 years ago niv-openerp [imp] changed logging to be like server 563 bytes Diff Download File
Makefile 2024 12 years ago Antony Lesuisse [FIX] revert html_template is used by other module 844 bytes Diff Download File
File npybabel.py 2200 12 years ago Xavier Morel [IMP] remove xmljs extractor from babel conf file 6.2 KB Diff Download File
File openerp-web 1899.1.2 12 years ago Vo Minh Thu [IMP] Removed the openerp.addons prefix when loadi 4.2 KB Diff Download File
openerp-web.cfg 307 12 years ago niv-openerp [IMP] Improved configuration. --HG-- extra : conv 11 bytes Diff Download File
README 937 12 years ago Antony Lesuisse [FIX] documentation update README 110 bytes Diff Download File
setup.py 1785 12 years ago Xavier Morel [FIX] typo in version requirement range 1.8 KB Diff Download File