[FIX] web_kanban_gauge: bunch of implicit globals in JS code
[MERGE] new v8 api by rco

A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
Merge pull request #926 from xmo-odoo/master-cleanup-gauge-xmo

Fix implicit globals in kanban_gauge JS
[IMP] raise exception when a DB request fetches ids it was not asked for

Likely caused by a type incoherence e.g. providing an id as string when the
table uses integer ids. Postgres performs an implicit conversion from string
to integer[0], this wasn't much of an issue in the old API, whatever cache was
there would simply not be used, but because the new API's cache is part of its
behavior it has a semantic impact and can lead to infinite recursion.

[0] more precisely from quoted value, which is untyped
[REM] models: remove the magic methods signal_XXX()
[FIX] signal_XXX -> signal_workflow: forgot quotes around signal name
[I18N] sale: fix pt translations

"Ordem de Vendas" changed to "Ordem de Venda"

(Rebase of PR #883)
Merge pull request #967 from xmo-odoo/master-id-type-xmo

Raise exception when a DB request fetches ids it was not asked for
[FIX] unsafe listification of weakref in Python < 2.7.4

Fixes #966

* As a preallocation optimization, ``list()`` calls ``__len__`` on its
  parameter if it's available
* Before Python 2.7.4, WeakSet has a bug[0] where ``len()`` is unsafe: it is
  done by iteration and weakrefs may be removed from the underlying set during
  the iteration

As a result, the safety feature of listifying a WeakSet to ensure we have
strong refs on all items during iteration may blow up.

Wrapping the weakset in a ``iter()`` makes ``__len__()`` invisible and ensures
we're within the IterationGuard[1].

Which now that I think about it means we *should* be able to safely iterate
weaksets in the first place and may not have needed to listify them...

[0] http://bugs.python.org/issue14159
[1] http://hg.python.org/cpython/file/b6acfbe2bdbe/Lib/_weakrefset.py#l58
[REM] unecessary calls to list()

* Either further operations don't really care (e.g. ``str.join`` takes any
  iterable)
* Or they do their own seq (``browse`` calls ``tuple()`` on iterable params)
[FIX]menu bar: clean up css and few cosmetics
[I18N] base: fix Hungarian translations

(Manual rebase of #956, pending update in Launchpad translations)
Merge pull request #972 from odoo-dev/8.0-menubar-cosmetics-csn

[FIX]menu bar: clean up css and few cosmetics
[FIX] account: typo in get_fiscal_position()

Fixes #971:

File "/Users/keje/src/odoo/addons/account/partner.py", line 107, in get_fiscal_position
    return part.property_account_position.id
NameError: global name 'part' is not defined
Merge pull request #964 from odoo-dev/8.0-remove-getattr-rco

[REM] models: remove the magic methods signal_XXX()
[REL] 8.0 RC1
[FIX] models: reorganize model instantiation, which was broken when adding custom fields
[FIX] data-dir management

- sessions are now shared between series.
- use site data dir instead of user data dir if user has no home dir.
- in http and module handling, `data-dir` was used before being
initialized, using the default value instead of user input

(fixes #308, #904)
Merge pull request #969 from xmo-odoo/8.0-fix-weakset-listification-xmo

Unsafe listification of weakref in Python < 2.7.4
Merge pull request #970 from xmo-odoo/8.0-remove-unnecessary-listifications-xmo

Remove redundant calls to list()