mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-23 17:08:46 -06:00
Merge pull request #82 from savoirfairelinux/8.0-fix-54
[FIX] TypeError: function lambda at 0x7f1f2cb562a8 is not JSON serializable
This commit is contained in:
commit
021fc47a5d
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Document Page',
|
'name': 'Document Page',
|
||||||
'version': '8.0.1.0.1',
|
'version': '8.0.1.0.2',
|
||||||
'category': 'Knowledge Management',
|
'category': 'Knowledge Management',
|
||||||
'description': """
|
'description': """
|
||||||
Pages
|
Pages
|
||||||
|
@ -181,14 +181,3 @@ class document_page_history(models.Model):
|
|||||||
"Revision-{}".format(v2),
|
"Revision-{}".format(v2),
|
||||||
context=True
|
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