[MERGE] forward port branch 10.0 up to 6639630de1
This commit is contained in:
@@ -181,12 +181,14 @@ This will install Odoo as a service, create the necessary PostgreSQL_ user
|
|||||||
and automatically start the server.
|
and automatically start the server.
|
||||||
|
|
||||||
.. danger:: to print PDF reports, you must install wkhtmltopdf_ yourself:
|
.. danger:: to print PDF reports, you must install wkhtmltopdf_ yourself:
|
||||||
the version of wkhtmltopdf_ available in debian repositories does
|
the version of wkhtmltopdf_ available in Debian repositories does
|
||||||
not support headers and footers so it can not be installed
|
not support headers and footers so it is not used as a direct dependency.
|
||||||
automatically. The recommended version is 0.12.1 and is available on
|
The recommended version is 0.12.5 and is available on
|
||||||
`the wkhtmltopdf download page`_, in the archive section. As there
|
`the wkhtmltopdf download page`_, in the archive section. Previously
|
||||||
is no official release for Debian Jessie, you can find ours on the
|
recommended version 0.12.1 is a good alternative.
|
||||||
extra_ section of our nightly server.
|
More details on the various versions and their respective quirks can be
|
||||||
|
found in our `wiki <https://github.com/odoo/odoo/wiki/Wkhtmltopdf>`_.
|
||||||
|
|
||||||
|
|
||||||
Configuration
|
Configuration
|
||||||
'''''''''''''
|
'''''''''''''
|
||||||
@@ -546,7 +548,7 @@ default db to serve on localhost:8069
|
|||||||
http://www.enterprisedb.com/products-services-training/pgdownload
|
http://www.enterprisedb.com/products-services-training/pgdownload
|
||||||
.. _Quilt: http://en.wikipedia.org/wiki/Quilt_(software)
|
.. _Quilt: http://en.wikipedia.org/wiki/Quilt_(software)
|
||||||
.. _saas: https://www.odoo.com/page/start
|
.. _saas: https://www.odoo.com/page/start
|
||||||
.. _the wkhtmltopdf download page: https://github.com/wkhtmltopdf/wkhtmltopdf/releases/tag/0.12.1
|
.. _the wkhtmltopdf download page: https://github.com/wkhtmltopdf/wkhtmltopdf/releases/tag/0.12.5
|
||||||
.. _UAC: http://en.wikipedia.org/wiki/User_Account_Control
|
.. _UAC: http://en.wikipedia.org/wiki/User_Account_Control
|
||||||
.. _wkhtmltopdf: http://wkhtmltopdf.org
|
.. _wkhtmltopdf: http://wkhtmltopdf.org
|
||||||
.. _pip: https://pip.pypa.io
|
.. _pip: https://pip.pypa.io
|
||||||
|
|||||||
@@ -444,6 +444,8 @@ class Users(models.Model):
|
|||||||
@api.model
|
@api.model
|
||||||
def check_credentials(self, password):
|
def check_credentials(self, password):
|
||||||
""" Override this method to plug additional authentication methods"""
|
""" Override this method to plug additional authentication methods"""
|
||||||
|
if not password:
|
||||||
|
raise AccessDenied()
|
||||||
user = self.sudo().search([('id', '=', self._uid), ('password', '=', password)])
|
user = self.sudo().search([('id', '=', self._uid), ('password', '=', password)])
|
||||||
if not user:
|
if not user:
|
||||||
raise AccessDenied()
|
raise AccessDenied()
|
||||||
|
|||||||
Reference in New Issue
Block a user