Performance improvement: defer optional write() - there's another one coming later, values can be combined.
Remove unused imports/variables
[FIX] _handle_exception() logic amongst requests and ir_http objects

Changes in website's ir_http#_handle_exception():

- exception is mandatory, can't be None anymore
- we don't touch non website_enabled requests
- we don't touch explicits plain responses from parent
- logic flow is now easier to read (I hope so)

Change in website's ir_http#_dispatch():

- In case of real 404, instead of returning self._handle_exception(),
  just let parent do the job (so we call super())
[FIX] check after openerp's AccessErrors in website's _handle_exception
[FIX] Sitemap - Back forward from saas-5 5cc1317a5f4525e8748692c69c3854773cf95454 to have the url_root in sitemap
[FIX] Forum / Sitemap - Restrcit the domain from controller, else the sitemap fetch response without the question
[FIX] Forum - Redirect permanently to the question, if post_id in url is not an answer.
[FIX] purchase_requisition: revert f68c835

These changes are not needed anymore with new WMS.
[IMP] purchase_requisition: lint file
Remark from MAT: invoice date wasn't passed on in original code after the original optional write.
[IMP] purchase: do not display Incoming Shipments and Invoices button when not needed
Merge pull request #751 from jrial/master

[FIX] account: Small performance fix + cleanup of account_invoice

Remove unused imports and variables
Merge two writes into one
Make sure we use the newly invoice_date and not the one left in the cache of the browse record
Merge pull request #761 from odoo-dev/saas-3-handle-exception-fme

[FIX] _handle_exception() logic amongst requests and ir_http objects

Changes in website's ir_http#_handle_exception():
* exception is mandatory, can't be None anymore
* we don't touch non website_enabled requests
* we don't touch explicits plain responses from parent
* logic flow is now easier to read (I hope so)
* check for openerp's AccessError and convert to 403 errors

Change in website's ir_http#_dispatch():
* In case of real 404, instead of returning self._handle_exception(), just let parent do the job (so we call super())
Merge pull request #765 from odoo-dev/saas-4-sitemap-forum-jke

[FIX] Forum / site map - redirect to question topic and response bypassed by sitemap
[REM] Unnecessary `size` parameters on char fields
Merge pull request #653 from odoo-dev/master-review-charfield-size-jar

[REM] Unnecessary `size` parameters on char fields
(+some code linting)
[FIX] http.dispatch: call handle_exception() even w/ session missing/expired

This gives JSONRequests a chance to return
a proper JSON-RPC result when an HTTPException
is raised downstream, instead of returning a
plain HTML 404 error.
[MERGE] Forward-port of saas-3 up to 141e1b2
[FIX] website: default mimetype for web-published attachments, avoids crash
[MERGE] Forward-port of saas-4 up to fa739ac