Remove prints
This commit is contained in:
parent
6bfdf2056f
commit
c988c92953
|
@ -36,12 +36,10 @@ class ButtonsFunction(QGridLayout):
|
||||||
columns = 5
|
columns = 5
|
||||||
if panel:
|
if panel:
|
||||||
name_style = 'toolbar'
|
name_style = 'toolbar'
|
||||||
print('Name style :', name_style)
|
|
||||||
|
|
||||||
positions = [(i, j) for i in range(rows) for j in range(columns)]
|
positions = [(i, j) for i in range(rows) for j in range(columns)]
|
||||||
for position, value in zip(positions, self.values):
|
for position, value in zip(positions, self.values):
|
||||||
name_icon = value[0][7:]
|
name_icon = value[0][7:]
|
||||||
print('Name icon > ', name_icon)
|
|
||||||
button = CustomButton(
|
button = CustomButton(
|
||||||
parent,
|
parent,
|
||||||
id=value[0],
|
id=value[0],
|
||||||
|
|
|
@ -451,7 +451,6 @@ if __name__ == "__main__":
|
||||||
else: #TEST = 'jsonrpc'
|
else: #TEST = 'jsonrpc'
|
||||||
conn = set_jsonrpc(url[:-1])
|
conn = set_jsonrpc(url[:-1])
|
||||||
User = conn.get_proxy('res.user')
|
User = conn.get_proxy('res.user')
|
||||||
print("Super:", User)
|
|
||||||
user = User.search_read([], 0, None, None, ['name'], {})
|
user = User.search_read([], 0, None, None, ['name'], {})
|
||||||
#Party = conn.get_proxy('party.party')
|
#Party = conn.get_proxy('party.party')
|
||||||
#res = Party.search_read([], 0, None, None, ['name'], conn.context)
|
#res = Party.search_read([], 0, None, None, ['name'], conn.context)
|
||||||
|
|
|
@ -58,7 +58,6 @@ class CustomButton(QPushButton):
|
||||||
|
|
||||||
self.setStyleSheet(''.join(styles))
|
self.setStyleSheet(''.join(styles))
|
||||||
self.setObjectName(name_style)
|
self.setObjectName(name_style)
|
||||||
print(title, name_style)
|
|
||||||
rows = []
|
rows = []
|
||||||
if icon:
|
if icon:
|
||||||
if not title:
|
if not title:
|
||||||
|
|
|
@ -59,7 +59,6 @@ class Image(QLabel):
|
||||||
screen_width = screen.width()
|
screen_width = screen.width()
|
||||||
screen_height = screen.height()
|
screen_height = screen.height()
|
||||||
size = self.pixmap.size()
|
size = self.pixmap.size()
|
||||||
print("image size", size.width(), size.height())
|
|
||||||
self.parent.setGeometry(
|
self.parent.setGeometry(
|
||||||
(screen_width / 2) - (size.width() / 2),
|
(screen_width / 2) - (size.width() / 2),
|
||||||
(screen_height / 2) - (size.height() / 2),
|
(screen_height / 2) - (size.height() / 2),
|
||||||
|
|
|
@ -296,5 +296,4 @@ class TrytonModel(object):
|
||||||
|
|
||||||
def method(self, name):
|
def method(self, name):
|
||||||
# TODO Add reuse self context (*values, self._context)
|
# TODO Add reuse self context (*values, self._context)
|
||||||
print('Se ejecuta este metodo...', name)
|
|
||||||
return getattr(self._proxy, name)
|
return getattr(self._proxy, name)
|
||||||
|
|
|
@ -72,8 +72,6 @@ class LocalStore(object):
|
||||||
return rows_
|
return rows_
|
||||||
|
|
||||||
def update_products(self, products, local_products):
|
def update_products(self, products, local_products):
|
||||||
len_products = len(products)
|
|
||||||
print('------- Creating %d products -------' % len_products)
|
|
||||||
to_create = []
|
to_create = []
|
||||||
to_update = []
|
to_update = []
|
||||||
for p in products:
|
for p in products:
|
||||||
|
|
Loading…
Reference in New Issue