mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-23 04:22:04 -06:00
Fix TypeError: function lambda at 0x7f1f2cb562a8 is not JSON serializable
This commit is contained in:
parent
6f5c6191b7
commit
35bcd5d263
@ -21,7 +21,7 @@
|
||||
|
||||
{
|
||||
'name': 'Document Page',
|
||||
'version': '9.0.1.0.0',
|
||||
'version': '9.0.1.0.1',
|
||||
'category': 'Knowledge Management',
|
||||
'author': 'OpenERP SA, Odoo Community Association (OCA)',
|
||||
'images': ['images/category_list.png', 'images/create_category.png',
|
||||
|
@ -58,14 +58,3 @@ class DocumentPageHistory(models.Model):
|
||||
"Revision-{}".format(v2),
|
||||
context=True
|
||||
)
|
||||
|
||||
def __getattr__(self, attr):
|
||||
"""Return a dummy callabale."""
|
||||
if attr in ['_sql', 'init', '_ids']:
|
||||
raise AttributeError
|
||||
|
||||
_logger.warning(
|
||||
"Trying to access attribute %s on document_page_history",
|
||||
attr
|
||||
)
|
||||
return (lambda *a, **b: None)
|
||||
|
Loading…
Reference in New Issue
Block a user