[WIP] ir.ui.view's arch field fetches disk version if --dev mode is used
[FIX] stored arch field is now arch_db
[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)
[FIX] base_action_rule: define patched methods inside a function to fix their closure.
[FIX] account: _get_analytic_lines needs the date_invoice

During the conversion of account_invoice.py to the new API, the date_invoice written on the invoice has been moved in the end of the action_move_create method.

But, the method _get_analytic_lines needs it sooner.
[FIX] account_analytic_plans: _convert_ref takes only 1 arg

Since the convert of account_invoice to the new api.
_convert_ref is defined as a staticmethod in account_invoice.py
[FIX] website_customer: check that country id exists before access the name, else traceback when we come from a non existing id via the url/controller
[ADD] crm: use company/contact name for fill partner_info in chatter

Sometimes, when you send an email in the chatter, a pop-up is displayed to fill the partner details
This case happens when the email address you send the email is not associated to an existing partner
In such cases, in lead, we use the company name and contact name to fill the partner name
[FIX] web: css tweaks
[IMP] hr modules: needaction, subtypes and department-based improvements.

This commit prepares some cleaning in various hr-related modules that are
about to land in master. There are mainly improvements on subtypes. The
subtypes are now linked to department subtypes, allowing to follow some records
based on the department (like project/task/issue).
[FIX] web: fix tooltip that were stuck visible

tooltip stuck visible should be removed on click + remove tooltip container except for modal in order to prevent them for staying visible in some rare occasion
[FIX] account: on_change_unit_amount do not reset uom to default
[MERGE] forward port of branch 7.0 up to cd31cbf556cc11950ce6188041cf5c2fcd89e0f8
[FIX] account: unit arg of on_change_unit_amount can be False
[MERGE] forward port of branch 7.0 up to 7c5bf67a5f9378fe4ae01eeffff24889f7bdcdc5
[FIX] crm: base_partner_merge, search with lowercase for name,email

and without spaces for vat
[FIX] mail: message-id not parsed properly in message_route

Same as for rev 4bad513, the references were not correctly parsed, added missing regex