11.02.26
This commit is contained in:
@@ -32,12 +32,12 @@ logger = logging.getLogger(__name__)
|
||||
class Location(metaclass=PoolMeta):
|
||||
__name__ = 'stock.location'
|
||||
|
||||
def get_places(self,name):
|
||||
def get_places(self):
|
||||
t = Table('places')
|
||||
cursor = Transaction().connection.cursor()
|
||||
cursor.execute(*t.select(
|
||||
t.PLACE_KEY,
|
||||
where=t.PLACE_NAME.ilike(f'%{name}%')
|
||||
where=t.PLACE_NAME.ilike(f'%{self.name}%')
|
||||
))
|
||||
rows = cursor.fetchall()
|
||||
if rows:
|
||||
|
||||
Reference in New Issue
Block a user