[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] website: prevent editing contact address with qweb contact widget

Because, currently, it copy the whole address in the contact name. The address is therefore duplicated
[FIX] website: fix snippet banner, else when a video is dropped (using a div), the video is moved outside of the span col-md-6 by the editor and so become invisble
[FIX] account: use float_compare instead of just <>
[FIX] Produce line should be connected to its procurement

[FIX] Better to work through the production_id of the procurement
[FIX] Byproducts should not start in waiting state
Merge pull request #3148 from odoo-dev/8.0-wmsmrporderpoint-jco

8.0 wmsmrporderpoint jco
[FIX] website_sale: no need to specific to a selection field that it is of type char

Besides, if set, the field will appear as a simple char field in the form view & editable lists
+ADD the type in the editable view
[FIX] website: use dom element instead of jquery class to click input file

For some reasons, the browser will prevent to open the system file browser when clicking the input file with javascript using the jquery class element, but it works when using the standard js dom element.
[IMP] [ADD] event: mail schedulign system.

This commit adds a way to configure scheduled emails on events. It replaces
existing automatic emails at confirmation and subscription. It proposes to
configure some schedulers, based on subscription or event, using a template
and a configurable timedelta.

A cron is added that regularly checks for event mailing schedulers to execute
and launch them. The granularity of send emails is therefore limited to the
granularity of the cron, aka 1 hour.

[TEST] Added tests for this feature.

Also cleaned a bit event, country_id is now a pure related instead
of a computed field trying to be a related. Also removed default templates
on event category. Configuration in the event itself should be easy
enough for most use cases.
[FIX] Do not lose session.db on authentication error
[IMP] point_of_sale: add constraint on company

Using a payment method belonging to another company will raise errors when closing the session.
To avoid being stuck at session closing, forbid to create a POS using a journal of another company.
[FIX] mrp: traceability of production

When consuming product, the main_production_move is set as the source of production (used for consumed_for parameter)
However the method action_consume now (since 661a204) returns the new moves (when spliting) instead of the original one. This means that the tracebility would fail.
[FIX] project: Overpassed Deadline computation

The field delay_endings_days represents the number of days since the deadline.
This field was using the write_date instead of now to compute it and was using the absolute value (so project in advance would also get overdue days
[FIX] Correct price correction courtesy of richard_willowit #2983 #2985
Merge pull request #3160 from odoo-dev/8.0-wmspricecorr-jco

[FIX] Correct price correction courtesy of richard_willowit #2983 #2985
[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.
[ADD] doc: basic index page instead of something completely blank
[FIX] website_sale: trigger the change event on the right node