[FIX] l10n_ma: proper chart of account name
[FIX] stock: display product variant name in the slip
"[REVERT][FIX] point_of_sale: field date of report.pos.order should be a datetime"

This reverts commit 97d097a2af8c3992d5108bd75b82fa8479d196cc.

As explained in the commit comments (on Github), this patch leads to an infinite loop in 7.0, the filter of the pos orders report using the '=' operator in its domain, which is not available for datetime fields, but is for date fields.

This should not be forward ported to newer release (saas-3)
[MERGE] forward port of branch 7.0 up to 18d365c
[FIX] web: no_create, if loose focus do not open quick_create
[FIX] gamification: performance improvement

On a large database, thousands of badges may have been granted. This code used to prefetch all fields of the users and badge users. This was highly inefficient. Replace this code by SQL query.
[IMP] gamification: improve 40e8437 to make only one global request
[FIX] account, bank statement reconciliation: fixed use cases involving transactions made in a different currency than the company AND the statement ones
[ADD] initial theme guide + scaffolding

incomplete, incorrect, committed for testing
[FIX] fields: avoid prefetching of one2many fields

When reading a one2many field, the inverse mapping of the lines (matching m2o -> lines of corresponding record) was instantiating each line and then triggering the prefect of fields.
To improve the performances, the inverse mapping is done in sql to avoid triggering the prefetching.
Forward port of branch saas-3 up to c3f5289
[IMP] fields: update inverse fields lazily for performance

When a relational field is assigned in an onchange, its inverse field is
updated in cache.  Reading the current value of the inverse field may be
costly, for instance in the case of a one2many field with thousands of records
as a value.  Instead, put in cache a SpecialValue that reads and updates the
field; it will be triggered only when it is accessed.
[IMP] models: do not prefetch too many records at once
[IMP] models: prefetch fields with groups (those to which user has access)
Forward port of branch saas-5 up to 9a7f48a
[FIX] im_chat : scroll down on opening conversation and add scroll bar on user list
[FIX] im_chat : use direct sql query on im_search method for perfomance issue
 and fix away status
[FIX] crm: avoid constraint errors when merging partners

As for the _update_foreign_keys, the _update_reference_fields method may raise an unique constraint when merging two partners.
In such case, the new record is not relevant and can be removed.
[IMP] website_forum: performance improvements

- avoid to browse on every question/answer, only the 20 most recent ones (need to manually update the view to see the real number of q&a)
- do not render hidden tabs (leakage of information and useless rendering)
- add related fields to speed up vote search (need to be stored to be efficient)
[FIX] website_forum_doc: default stage for post + removed unused import + added toc_id field in post tree view