0516533c16
* Throw out focusin/focusout: the m2o widget's completion list is created at the page top (body) so the editable listview can't generically handle arbitrary widgets via mere focusin/focusout. * Move responsibility of focus/blur events to the form view and its widgets. * Events could not just be named ``focus`` and ``blur`` due to usage of jquery's event system: jquery will automatically call a method of the event's name if it exists on the object, which conflicts with .web.form.Field#focus and leads to an infinite loop (as Field#focus focuses the field's root element, which triggers the focus event, which calls the focus method,...) => form-* and widget-*, can be switched back in trunk * m2o mess kind-of complex, basically: - the core input and the menu button behave as blur/focus triggers - when the autocompletion list is clicked, it will temporarily remove the focus from the input (blurring it), and put it back later... on a timer. Issue is the timer, we don't want to rely on having a bigger timer (as later revisions of the library may change our timings and it's iffy to rely on timers conserving order perfectly); on the other hand we know the focus *will* come back to the input eventually. So we can just avoid propagating blur iif the blur is the consequence of having clicked on the completion list. - roughly the same thing happens when clicking on $drop_down (after fixing the handling of its final focus to be consistent, as $drop_down would not re-focus the input if it was *closing* the completion list) - pretty sure the menu thing does *not work at all*, but I don't have the courage of fixing it before committing this part. Date/datetime widget remains to be handled, basically the core focus handling is the same as in e.g. a charfield *but* needs to handle (and ignore) loss of focus from clicking inside the picker widget. Expecting the level of suck to reach unknown heights. bzr revid: xmo@openerp.com-20120619072518-lsrhzij5asxt2aea |
||
---|---|---|
addons | ||
bin | ||
debian | ||
doc | ||
history | ||
install | ||
openerp | ||
win32 | ||
.bzrignore | ||
LICENSE | ||
LICENSE.web | ||
MANIFEST.in | ||
Makefile | ||
README | ||
README.web | ||
babel.cfg | ||
gen_translations.sh | ||
gunicorn.conf.py | ||
logging.json | ||
npybabel.py | ||
openerp-cron-worker | ||
openerp-server | ||
openerp-web | ||
openerp-web.cfg | ||
setup.cfg | ||
setup.nsi | ||
setup.py | ||
setup_rpm.sh |
README
About OpenERP ------------- OpenERP is an OpenSource/Free software Enterprise Resource Planning and Customer Relationship Management software. More info at: http://www.openerp.com Installation on Debian Ubuntu ----------------------------- Download the deb file and type: $ sudo dpkg -i <openerp-deb-filename> $ sudo apt-get install install -f Installation on Debian Ubuntu from nightly build ------------------------------------------------ Add the the apt repository deb http://nightly.openerp.com/6.1/deb/ ./ in your source.list and type: $ sudo apt-get update $ sudo apt-get install openerp Installation on RedHat, Fedora, CentOS -------------------------------------- Install the required dependencies: $ yum install python $ easy_install pip $ pip install ..... Install the openerp rpm $ rpm -i openerp-VERSION.rpm Installation on Windows ----------------------- Installation on MacOSX ----------------------- Setuping you first database --------------------------- Point your browser to http://localhost:8069/ and click "Manage Databases", the default master password is "admin". Detailed System Requirements ---------------------------- You need the following software installed: postgresql-client, python-dateutil, python-feedparser, python-gdata, python-ldap, python-libxslt1, python-lxml, python-mako, python-openid, python-psycopg2, python-pybabel, python-pychart, python-pydot, python-pyparsing, python-reportlab, python-simplejson, python-tz, python-vatnumber, python-vobject, python-webdav, python-werkzeug, python-xlwt, python-yaml, python-zsi For Luxembourg localization, you also need: pdftk (http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/)