mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-24 17:38:42 -06:00
document_page_history don't have _sql attribute
This commit is contained in:
parent
048caadd1a
commit
a6c01b53fe
@ -183,6 +183,9 @@ class document_page_history(models.Model):
|
|||||||
|
|
||||||
def __getattr__(self, attr):
|
def __getattr__(self, attr):
|
||||||
"""Return a dummy callabale"""
|
"""Return a dummy callabale"""
|
||||||
|
if attr in ['_sql']:
|
||||||
|
raise AttributeError
|
||||||
|
|
||||||
_logger.warning(
|
_logger.warning(
|
||||||
"Trying to access attribute %s on document_page_history",
|
"Trying to access attribute %s on document_page_history",
|
||||||
attr
|
attr
|
||||||
|
Loading…
Reference in New Issue
Block a user