Go to file
Xavier Morel 9cefa76988 [ADD] hasclass() xpath function
Server-side, view extension is done via xpath. This includes "template" views
full of HTML.

HTML elements often have a bunch of classes, sometimes even semantic
(!). XPath is generally great, but specifically lousy at dealing with
space-separated values: in standard XPath 1.0 to know if an element has a
class 'foo' the predicate is:

    contains(concat(' ', normalize-space(@class), ' '), ' foo ')

and this has to be fully duplicated if there's a second class involved.

Things are slightly better with EXSLT/XPath 2.0 and tokenize, but still not
great:

    tokenize(@class, '\s+') = 'foo'

and the equality check is very weird when unaware of XPath's evaluation rules.

``hasclass`` makes this much simpler to deal with: to get any ``foo`` node
with the class ``bar`` is as simple as:

    //foo[hasclass('bar')

and it can take multiple class, as with e.g. jquery it will return elements
with all specified classes.

Beware though, the predicate function will be called once for each element to
check, since it's implemented in pure python and not profiled elements should
be filtered as much as possible before this point.
2014-05-19 08:32:23 +02:00
addons fix #11: fix spelling of model name in account_budget wizard 2014-05-16 16:58:34 +02:00
debian [ADD] python requests library dependency 2014-03-27 13:57:14 +01:00
doc [ADD] forgotten images, new patches/howto sections 2014-05-19 08:32:22 +02:00
history cleanup repo root 2014-05-15 10:43:02 +02:00
install cleanup repo root 2014-05-15 10:43:02 +02:00
openerp [ADD] hasclass() xpath function 2014-05-19 08:32:23 +02:00
openerpcommand [IMP] clarify initial instructions, autogen directory if does not exist 2014-05-19 08:32:17 +02:00
.gitignore [ADD] convert bzrignore to gitignore 2014-05-16 16:05:39 +02:00
LICENSE cleanup repo root 2014-05-15 10:43:02 +02:00
MANIFEST.in [FIX] update MANIFEST.in to include openerp-gevent and oe binaries 2014-01-14 17:12:02 +01:00
README.md [FIX] small typo in readme 2014-05-18 17:24:22 +02:00
checkout.sh [IMP] remove setting of color.ui 2014-05-17 11:44:09 +02:00
oe [FIX] temp fix for runbot-job 2014-02-17 01:07:02 +01:00
openerp-gevent restore the original gevent detection 2013-09-10 01:19:46 +02:00
openerp-server openerp apps main moved to cli ready for new commands 2012-11-27 01:55:13 +01:00
openerp-wsgi.py [FIX] wsgi deployement with openerp-wsgi.py 2014-03-07 21:00:55 +01:00
setup.cfg [IMP] redhat remove unused stuff 2011-10-06 05:14:26 +02:00
setup.py [MERGE] forward port of branch saas-3 up to revid 5116 chs@openerp.com-20140415133650-y46i0o3qkb2atbvi 2014-04-15 16:05:48 +02:00
setup_rpm.sh [FIX] correct RPM creation: quote files with a space 2014-01-14 17:13:04 +01:00

README.md

About Odoo

Odoo is suite of open source Business apps. More info at http://www.odoo.com

Installation

Setup/migration guide for employees

Migration from bazaar

If you have existing bazaar branches and want to move them to a git repository, there are several options:

  • download http://nightly.openerp.com/move-branch.zip and run it with python move-branch.zip -h (for the help). It should be able to convert simple-enough branches for you (even if they have merge commits &al)
  • Extract the branch contents as patches and use git apply or git am to rebuild a branch from them
  • Replay the branch by hand

System Requirements

The dependencies are listed in setup.py

Debian/Ubuntu

Add the apt repository

deb http://nightly.openerp.com/7.0/deb/ ./

in your source.list and type:

$ sudo apt-get update
$ sudo apt-get install openerp

Or download the deb file and type:

$ sudo dpkg -i <openerp-deb-filename>
$ sudo apt-get install install -f

RedHat, Fedora, CentOS

Install the required dependencies:

$ yum install python
$ easy_install pip
$ pip install .....

Install the openerp rpm

$ rpm -i openerp-VERSION.rpm

Windows

Check the notes in setup.py

Setting up your database

Point your browser to http://localhost:8069/ and click "Manage Databases", the default master password is "admin".