[FIX] sale*: properly mark method as @classmethod

When inheriting a @classmethod, the override needs to have the
@classmethod decorator as well, otherwise calls will fail with a
TypeError
This commit is contained in:
Olivier Dony
2018-03-02 18:27:18 +01:00
parent 71ccea35ba
commit 7836b8811b
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -11,6 +11,7 @@ from odoo.tools.misc import consteq
class MailController(MailController):
@classmethod
def _redirect_to_record(cls, model, res_id, access_token=None):
# If the current user doesn't have access to the invoice, but provided
# a valid access token, redirect him to the front-end view.
+1
View File
@@ -11,6 +11,7 @@ from odoo.tools.misc import consteq
class MailController(MailController):
@classmethod
def _redirect_to_record(cls, model, res_id, access_token=None):
# If the current user doesn't have access to the sales order, but provided
# a valid access token, redirect him to the front-end view.