sql: replace dashes used in backoffice attribute names (#32678)

This commit is contained in:
Frédéric Péters 2019-04-29 16:31:37 +02:00 committed by Thomas NOEL
parent 7fbd17431c
commit 101c650a56
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ SQL_TYPE_MAPPING = {
class Criteria(qommon.storage.Criteria):
def __init__(self, attribute, value, **kwargs):
self.attribute = attribute
self.attribute = attribute.replace('-', '_')
self.value = value
def as_sql(self):