[FIX] stock: production lot as no longer a company_id field
[MERGE] forward port of branch saas-5 up to c86f217
[MERGE] forward port of branch 8.0 up to 1e6b7a5
[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
[FIX] account: avoid to propagate context in send by email button

There is no reason to propagate the context in those buttons.

Besides, it leads to issues concerning the email template, rendering the wrong res_id because the active_id was wrongly propagated
[FIX] event: registration and confirmation template now have a domain on event.registration.
Otherwise all templates are displayed and this will lead to some issues.

Also added a description on event.registration, because currently its
displayed name is Email Thread.
[FIX] mass_mailing: allow to add a user/email to a specific mailing list and not always the last as previously.