Project Bugfix
bzr revid: fp@tinyerp.com-7323dac277d16d46794d20fd624d1cd8ea11e828
This commit is contained in:
+1
-1
@@ -8077,7 +8077,7 @@
|
||||
"view","stock.picking",0,"Others info","Autres informations"
|
||||
"view","stock.picking",0,"Force assignations","Forcer l'assignation"
|
||||
"view","stock.picking",0,"Cancel assignation","Annuler assignation"
|
||||
"view","stock.picking",0,"Make Packing","Emballer "
|
||||
"view","stock.picking",0,"Make Packing","Valider"
|
||||
"field","stock.picking,purchase_id",0,"Purchase Order","Ordre d'achat"
|
||||
"selection","stock.picking,state",0,"Confirmed","Confirmé"
|
||||
"selection","stock.picking,state",0,"Assigned","Assigné"
|
||||
|
||||
|
Can't render this file because it is too large.
|
+10
-10
@@ -57,7 +57,7 @@ class fake_cursor:
|
||||
self.con = con
|
||||
self.dbname = dbname
|
||||
|
||||
def execute_not_run(self,*args):
|
||||
def execute(self,*args):
|
||||
#if not fake_cursor.nbr % 1:
|
||||
# print 'sql: ',fake_cursor.nbr, args
|
||||
res = re.match('^select.* from ([a-zA-Z_]+) .*$', args[0], re.I)
|
||||
@@ -71,15 +71,15 @@ class fake_cursor:
|
||||
# else:
|
||||
# print 'sql: ',fake_cursor.nbr, args[0]
|
||||
|
||||
#if not fake_cursor.nbr % 5000:
|
||||
# ct = []
|
||||
# for t,c in fake_cursor._tables.items():
|
||||
# ct.append([c,t])
|
||||
# ct.sort()
|
||||
# ct.reverse()
|
||||
# print 'After %d queries' % (fake_cursor.nbr,)
|
||||
# for line in ct[:50]:
|
||||
# print ' %s: %d' % (line[1], line[0])
|
||||
if not fake_cursor.nbr % 500:
|
||||
ct = []
|
||||
for t,c in fake_cursor._tables.items():
|
||||
ct.append([c,t])
|
||||
ct.sort()
|
||||
ct.reverse()
|
||||
print 'After %d queries' % (fake_cursor.nbr,)
|
||||
for line in ct[:50]:
|
||||
print ' %s: %d' % (line[1], line[0])
|
||||
|
||||
#if len(args)>1:
|
||||
# print 'sql: ',fake_cursor.nbr, args[0], args[1]
|
||||
|
||||
Reference in New Issue
Block a user