[IMP] point_of_sale: tests work better when they are loaded and run by the unit test system!
Merge branch 'master' into master-pos-small-imps-of-july-fva
[FIX] data dir when home is not a directory

Use site data dir instead of user data dir when user's home is not a directory.
Like system users created with /dev/null as home.

Stricter than before.
[IMP] point_of_sale: made the server data loading more modular for easier development of point_of_sale extensions
[IMP] point_of_sale: report errors when loading the point of sale with a traceback and a nice popup
[IMP] pos_discount: a new pos extension that allows you to quickly give a global discount on the current order
[WIP] ir.ui.view's arch field fetches disk version if --dev mode is used
[FIX] stored arch field is now arch_db
Merge branch 'master' into master-pos-small-imps-of-july-fva
[FIX] register dev_mode command line switch
[FIX] Temporary disable addons subcommand auto discovery

The problem with the current approach is that it imports all modules in
order to discover which one exposes a subcommand by subclassing
openerp.cli.Command. At that time, the arguments are not parsed in order
to setup the config because a subcommand could potentialy alter the
command line arguments (which is the case of `start`)

This behavior causes the modules to be imported with the default config and all
the modules using some config keys at startup won't have to value they
are supposed to have when considering the shared command line switches.

Long story short:

$ odoo --workers=6

is ok, but

$ odoo start --workers=6

is not.

As the automatic subcommands are not used yet, we temporary disable it
until as proper solution is found.
[ADD] @conditional decorator for a conditionally applied decorator
[IMP] Make read_template conditionally cached (--dev)
[WIP] Replace pyinotify by watchdog
[IMP] point_of_sale: allow an order to remember what screen it was on, instead
of switching back to default screen.

This is used by the soon to be merged restaurant addon to create new orders
and display them at a particular screen.  However, this behaviour is more
confusing in the other cases, so I'll think of a better way to solve this.
[FIX] point_of_sale: removed useless console.log()
[IMP] restaurant: a module that extends the point of sale with restaurant features
[IMP] pos_discount: add an icon to the discount button
Merge branch 'master' into master-pos-small-imps-of-july-fva
handle missing JS files with a console log