[FIX] sale: translate advance message on advance invoice
[FIX] mail: set the parent_id to the first message of type email

And fallback of any type if there is none of type email

This fix allow the communication between two mail thread from two different Odoo servers having message creation subtypes, like project issue or crm lead
[FIX] account_followup: do no duplicate partner's account.move.line

Duplicating a partner should not duplicate the content of the unreconciled_aml_ids field.
[FIX] l10n_fr_hr_payroll: report "Fiche de paye"

Avoids getting False for the field end_date (Sortie) in case of no end date specified on the contract. opw 614624
[FIX] l10n_fr_hr_payroll: bad copy-paste in 69c1333
[FIX] res_partner: add parent_name related field

In some cases (e.g. with record rules), the name_get might not have access
to the parent name. Therefore a parent_name related field solves the
issue (as it read with as superuser).
[FIX] {web,point_of_sale}: allow cross-origin access to company logo
[FIX] website_forum: respect karma when posting questions/answers/comments + more user-friendly errors

While posting new questions and answers the check
for karma limit was bypassed because it was using
super-user mode: use regular user instead.
Also improve the user feedback when karma level is
too low to perform some actions: post comment,
post question, post answer.
The usability in these cases still needs to be
improved.
[DOC] cmdline: database-related parameters
[FIX] point_of_sale: no need to specify numeric digits

In the report pos order, average_price was set as a numeric(16,2), therefore, if the amount was too big, it led to a psql crash:
A field with precision 16, scale 2 must round to an absolute value less than 10^14.
[MERGE] forward port of branch 7.0 up to 78a29b3
[MERGE] forward port of branch 8.0 up to d80376a
[FIX] website_certification: no need to set a group to acl if the data is public
[FIX] move google analytics js snippet at the bottom (Fixes #3222)
[FIX] stock: inverse function field should write the given value and not current
[FIX] sale: force condtion True for workflow activity trans_ship_ship_except

This is related to fix 43b0a63
[FIX] mail: limit messages in chatters
[FIX] fields: selection, do not try to translate label if label is empty

 - translate with no source returns first translation for this field, whatever the source
 - performance
Merge branch '8.0' of github.com:odoo/odoo into 8.0