Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 583c493

Browse files
author
Maxime Chambreuil - http://www.savoirfairelinux.com
committed
Merge pull request OCA#83 from naousse/9.0-document_page
[FIX] TypeError: function lambda at 0x7f1f2cb562a8 is not JSON serializ…
2 parents b871d67 + 35bcd5d commit 583c493

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

document_page/__openerp__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
{
2323
'name': 'Document Page',
24-
'version': '9.0.1.0.0',
24+
'version': '9.0.1.0.1',
2525
'category': 'Knowledge Management',
2626
'author': 'OpenERP SA, Odoo Community Association (OCA)',
2727
'images': ['images/category_list.png', 'images/create_category.png',

document_page/models/document_page_history.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,3 @@ def getDiff(self, v1, v2):
5858
"Revision-{}".format(v2),
5959
context=True
6060
)
61-
62-
def __getattr__(self, attr):
63-
"""Return a dummy callabale."""
64-
if attr in ['_sql', 'init', '_ids']:
65-
raise AttributeError
66-
67-
_logger.warning(
68-
"Trying to access attribute %s on document_page_history",
69-
attr
70-
)
71-
return (lambda *a, **b: None)

0 commit comments

Comments
 (0)