[IMP ]add failure_reason field and counting number of fail mail

[IMP] improve help and change field name fail_mail to fail_counter and change method name of counting fail mail
Merge pull request #936 from odoo-dev/master-send-failmail-warning-avo

[IMP] mail: store the reason when failing to send an email; usability improvements in configuration, now showing the number of failed emails + links for easier configuration.
[FIX] mail: issue of action_id used before being defined. My bad.
[FIX]sale_stock: Invoice created from picking not using price list for BOM components.

[IMP]sale_stock: Invoice created from picking not using price list for BOM components.

[IMP]

[IMP]improve code