[FIX] mail: access link generaTION

Catch only the error related to the access of the linked record.
Previous was hidding error to access the ir.config_parameter and eventual other
errors from the orm.
Uses SUPERUSER_ID to access instance URL (e.g. portal has no access to it).
Fixes #4234 #4234
[FIX]web_gantt: value rendering with decimal separator other than dot
[MERGE] forward port of branch 7.0 up to 60a361c
[FIX] web_gantt: duration in business days if delay not set

delay already being the hours amount in business hours

opw-620189
[MERGE] forward port of branch 7.0 up to f833d2e
[FIX] purchase: supplier invoice and purchase order count

Value of purchase_order_count and supplier_invoice_count should be coherant with
the behaviour of the button on partner form: count records for the contact of
the company as well.
Fixes #4224
Reintroduce fname kwarg in configmanager

In [f04f409], the configmanager's __init__ lost its fname kwarg, which
allows to pass the name of the config file to read (or write).
Without it the only way to programmatically specify this file name is to
use the OPENERP_SERVER environment variable, which may be unpractical and/or
subject to renaming.

External tools (such as the buildout recipe) may need to pass this file in a
clean way.
[FIX] web: autocomplete selection not hidden

Appending the autocomplete selection too close from the input field leads to display (hidden) problem in some cases (Many2one inside modals views, many2one at the end of a form view, etc.)

This is related to rev. e1cde4d0383124c0636c518185f2222055afa3b5

closes #4268
[FIX] base: almost-duplicated translations ignored during import

Translations are not transfered from temporary table tmp_ir_translation_import
to ir_translation if translation already exists (using `find_expr`).
In case of import of QWeb terms (name = 'website'), the criteria was too weak,
finding already present terms in translations for different modules.
e.g. term "Quantity" is already present in a QWeb view from sale module and was
not imported for the translations of the website_sale module.
Fixed by adding the filter criteria 'irt.module = ti.module'

In case QWeb translations for the same term in the same modules were added in
two imports (second term added in the future), the second was still ignored.
Changed condition to check the res_id for views as well.

Fixes #4239
[FIX] payment_buckaroo: partner lang can be set to False
[FIX] payment_buckaroo: pudb introduced during dbe93ab02242402f1032cc1cc10b32a6431589f1

Yes, shame on me. You can laugh.
[FIX] crm_partner_assign: more precise geolocation

Google api geolocation service returns a precise latitude and longitude, greater or equal than 5 digits
The precision is important as storing 2 digits instead of 5 can lead to an inaccuracy of allmost half a mile.
[FIX] sales_team: spellchecking module description
[FIX] product, sale: access rights for product.price.history

Granting read-only access to Sales/Accounting Users is useless
as all employees already have it - removed. On the other hand
Sales Managers need write access to it in order to create
products, and they need it even when `sale` is not installed,
e.g. with `account` only.
Moved this access right to `product` module. The Sales
Manager group is defined in `base`, so that works.
[FIX] server: worker exit log should mention registry count to help admins size deployment settings
[FIX] mail: thread messages order on show more

If click show more in a flat thread (level 0, such as under leads, issues, etc.) append messages from newer to older
If click show more in an indented thread (level > 0, such as in the messaging wall), append messages from older to newer
[IMP] stock: Default address for the default WH

So that with minimal config, PO's have a delivery address.
[FIX] stock: barcode, display pickings of active stock picking type

If a stock picking type was disabled, but had pickings in assigned or partially available state, the barcode interface main menu crashed
Because the stock picking type was not available in pickings_by_type array
[FIX] account: prevent selecting company's contacts for manual account.move.line

Only the commercial partner (parent company) should be set in partner field of
an account.move.line.
Fixes #4261, opw 618763
[FIX]stock: return of 'To Be Invoiced' picking should also be invoiced

When creating a return picking, the default invoice state is 'To Be Invoiced' if
returned picking was invoiced. However if the invoice of the picking has not
been generated yet (state '2binvoiced'), the return should also be invoiced.
Fixes #4002