mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-22 20:12:04 -06:00
Adding hack in document_page_history to allow calling method that don't exists
This commit is contained in:
parent
605987d358
commit
048caadd1a
@ -18,9 +18,12 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
import logging
|
||||
import difflib
|
||||
from openerp import models, fields, api, _
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class document_page(models.Model):
|
||||
_name = "document.page"
|
||||
@ -177,3 +180,11 @@ class document_page_history(models.Model):
|
||||
"Revision-{}".format(v2),
|
||||
context=True
|
||||
)
|
||||
|
||||
def __getattr__(self, attr):
|
||||
"""Return a dummy callabale"""
|
||||
_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