extractor erstmal fertig

- er findet fast alle tabellen
- quellcode wird entpackt wenn er in einer variable ist
This commit is contained in:
2026-08-09 00:47:23 +02:00
parent 24caf23986
commit d4337ad1a5
116 changed files with 887 additions and 864 deletions
+6 -6
View File
@@ -64,7 +64,7 @@
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))"
],
"kwargs": {},
"code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null)))",
"code": "(transaction.connection.cursor()).execute(*user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.main_company,\n where=table.main_company != Null)))",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
@@ -81,7 +81,7 @@
"table.select(table.id, table.main_company, where=table.main_company != Null)"
],
"kwargs": {},
"code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))",
"code": "user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.main_company,\n where=table.main_company != Null))",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
@@ -99,7 +99,7 @@
"kwargs": {
"where": "table.main_company != Null"
},
"code": "table.select(table.id, table.main_company, where=table.main_company != Null)",
"code": "table.select(\n table.id, table.main_company,\n where=table.main_company != Null)",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
@@ -115,7 +115,7 @@
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))"
],
"kwargs": {},
"code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))))",
"code": "(transaction.connection.cursor()).execute(*user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company))))",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
@@ -132,7 +132,7 @@
"table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))"
],
"kwargs": {},
"code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))",
"code": "user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company)))",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
@@ -150,7 +150,7 @@
"kwargs": {
"where": "(table.company != Null) & (table.company != table.main_company)"
},
"code": "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))",
"code": "table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company))",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
+4 -4
View File
@@ -62,7 +62,7 @@
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
],
"kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))",
"code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super"
},
{
@@ -76,7 +76,7 @@
"kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)"
},
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))",
"code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super"
}
]
@@ -98,7 +98,7 @@
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
],
"kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))",
"code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super"
},
{
@@ -112,7 +112,7 @@
"kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)"
},
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))",
"code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super"
},
{
+2 -2
View File
@@ -19,7 +19,7 @@
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
],
"kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))",
"code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__)))",
"phase": "after_super"
},
{
@@ -33,7 +33,7 @@
"kwargs": {
"where": "(data.module == 'currency') & (data.model == cls.__name__)"
},
"code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))",
"code": "data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__))",
"phase": "after_super"
}
]
+29 -29
View File
@@ -33,7 +33,7 @@
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
],
"kwargs": {},
"code": "cursor.execute(*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain'))",
"code": "(transaction.connection.cursor()).execute(*action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain'))",
"phase": "after_super"
},
{
@@ -50,7 +50,7 @@
"kwargs": {
"where": "action_report.extension == 'plain'"
},
"code": "action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')",
"code": "action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain')",
"phase": "after_super"
}
]
@@ -115,7 +115,7 @@
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
],
"kwargs": {},
"code": "cursor.execute(*act_window.update([act_window.limit], [Null], where=act_window.limit == 0))",
"code": "(Transaction().connection.cursor()).execute(*act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0))",
"phase": "after_super"
},
{
@@ -132,7 +132,7 @@
"kwargs": {
"where": "act_window.limit == 0"
},
"code": "act_window.update([act_window.limit], [Null], where=act_window.limit == 0)",
"code": "act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0)",
"phase": "after_super"
}
]
@@ -200,7 +200,7 @@
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
],
"kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null)))",
"code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null)))",
"phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')"
},
@@ -218,7 +218,7 @@
"kwargs": {
"where": "(attachment.collision == 0) | (attachment.collision == Null)"
},
"code": "attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))",
"code": "attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null))",
"phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')"
},
@@ -233,7 +233,7 @@
"*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))"
],
"kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null)))",
"code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null)))",
"phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')"
},
@@ -251,7 +251,7 @@
"kwargs": {
"where": "(attachment.collision != 0) & (attachment.collision != Null)"
},
"code": "attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))",
"code": "attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null))",
"phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')"
},
@@ -363,7 +363,7 @@
"*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))"
],
"kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')))",
"code": "(Transaction().connection.cursor()).execute(*model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button'))))",
"phase": "after_super"
},
{
@@ -380,7 +380,7 @@
"kwargs": {
"where": "(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')"
},
"code": "model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))",
"code": "model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button')))",
"phase": "after_super"
},
{
@@ -435,7 +435,7 @@
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed'))",
"code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed'))",
"phase": "after_super"
},
{
@@ -452,7 +452,7 @@
"kwargs": {
"where": "sql_table.state == 'installed'"
},
"code": "sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')",
"code": "sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed')",
"phase": "after_super"
},
{
@@ -466,7 +466,7 @@
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled'))",
"code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled'))",
"phase": "after_super"
},
{
@@ -483,7 +483,7 @@
"kwargs": {
"where": "sql_table.state == 'uninstalled'"
},
"code": "sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')",
"code": "sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled')",
"phase": "after_super"
},
{
@@ -497,7 +497,7 @@
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
],
"kwargs": {},
"code": "cursor.execute(*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)))",
"code": "(Transaction().connection.cursor()).execute(*model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids)))))",
"phase": "after_super"
},
{
@@ -514,7 +514,7 @@
"kwargs": {
"where": "(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)"
},
"code": "model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))",
"code": "model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids))))",
"phase": "after_super"
}
]
@@ -578,7 +578,7 @@
"*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')"
],
"kwargs": {},
"code": "cursor.execute(*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item'))",
"code": "(Transaction().connection.cursor()).execute(*model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model\n == 'ir.module.module.config_wizard.item')))",
"phase": "before_super"
},
{
@@ -594,7 +594,7 @@
"values": "[cls.__name__]",
"where": "model_data.model == 'ir.module.module.config_wizard.item'"
},
"code": "model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')",
"code": "model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model\n == 'ir.module.module.config_wizard.item'))",
"phase": "before_super"
},
{
@@ -656,7 +656,7 @@
"*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)))",
"code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.sequence_type],\n sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code)))",
"phase": "after_super",
"condition": "table_h.column_exist('code')"
},
@@ -673,7 +673,7 @@
"sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)"
],
"kwargs": {},
"code": "table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))",
"code": "table.update(\n [table.sequence_type],\n sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code))",
"phase": "after_super",
"condition": "table_h.column_exist('code')"
},
@@ -690,7 +690,7 @@
"kwargs": {
"where": "sequence_type.code == table.code"
},
"code": "sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)",
"code": "sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code)",
"phase": "after_super",
"condition": "table_h.column_exist('code')"
},
@@ -758,7 +758,7 @@
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
],
"kwargs": {},
"code": "cursor.execute(*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt'))",
"code": "(transaction.connection.cursor()).execute(*ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt'))",
"phase": "after_super"
},
{
@@ -775,7 +775,7 @@
"kwargs": {
"where": "ir_translation.type == 'odt'"
},
"code": "ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')",
"code": "ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt')",
"phase": "after_super"
}
]
@@ -797,7 +797,7 @@
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null))",
"code": "(Transaction().connection.cursor()).execute(*sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null))",
"phase": "after_super",
"condition": "table.column_exist('minimum_delay')"
},
@@ -815,7 +815,7 @@
"kwargs": {
"where": "sql_table.minimum_delay != Null"
},
"code": "sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)",
"code": "sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null)",
"phase": "after_super",
"condition": "table.column_exist('minimum_delay')"
},
@@ -847,7 +847,7 @@
"kwargs": {
"where": "model.id == sql_table.action_model"
},
"code": "model.select(model.model, where=model.id == sql_table.action_model)",
"code": "model.select(\n model.model, where=model.id == sql_table.(model.select(\n model.model, where=model.id == sql_table.action_model)))",
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
@@ -862,7 +862,7 @@
"*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))]))",
"code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.action],\n [Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))]))",
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
@@ -878,7 +878,7 @@
"[Concat(action_model, Concat('|', sql_table.action_function))]"
],
"kwargs": {},
"code": "sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])",
"code": "sql_table.update(\n [sql_table.action],\n [Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))])",
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
@@ -893,7 +893,7 @@
"'action_model'"
],
"kwargs": {},
"code": "table_h.drop_column('action_model')",
"code": "table_h.drop_column('(model.select(\n model.model, where=model.id == sql_table.action_model))')",
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
+14 -14
View File
@@ -34,7 +34,7 @@
"*sql_table.update([sql_table.street], [value])"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.street], [value]))",
"code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.street],\n [value]))",
"phase": "after_super",
"condition": "table.column_exist('streetbis')"
},
@@ -50,7 +50,7 @@
"[value]"
],
"kwargs": {},
"code": "sql_table.update([sql_table.street], [value])",
"code": "sql_table.update(\n [sql_table.street],\n [value])",
"phase": "after_super",
"condition": "table.column_exist('streetbis')"
},
@@ -90,7 +90,7 @@
"country.select(country.code, where=country.id == table.country)"
],
"kwargs": {},
"code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))",
"code": "table.update(\n [table.country_code],\n country.select(\n country.code,\n where=country.id == table.country))",
"phase": "after_super",
"condition": "table_h.column_exist('country')"
},
@@ -107,7 +107,7 @@
"kwargs": {
"where": "country.id == table.country"
},
"code": "country.select(country.code, where=country.id == table.country)",
"code": "country.select(\n country.code,\n where=country.id == table.country)",
"phase": "after_super",
"condition": "table_h.column_exist('country')"
},
@@ -120,7 +120,7 @@
"*query"
],
"kwargs": {},
"code": "cursor.execute(*query)",
"code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super",
"condition": "table_h.column_exist('country')"
},
@@ -152,7 +152,7 @@
"language.select(Substring(language.code, 0, 2), where=language.id == table.language)"
],
"kwargs": {},
"code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))",
"code": "table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))",
"phase": "after_super",
"condition": "table_h.column_exist('language')"
},
@@ -169,7 +169,7 @@
"kwargs": {
"where": "language.id == table.language"
},
"code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)",
"code": "language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language)",
"phase": "after_super",
"condition": "table_h.column_exist('language')"
},
@@ -182,7 +182,7 @@
"*query"
],
"kwargs": {},
"code": "cursor.execute(*query)",
"code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super",
"condition": "table_h.column_exist('language')"
},
@@ -301,7 +301,7 @@
"party.select(party.id, party.lang)"
],
"kwargs": {},
"code": "table.insert([table.party, table.lang], party.select(party.id, party.lang))",
"code": "table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))",
"phase": "after_super",
"condition": "party_h.column_exist('lang')"
},
@@ -330,7 +330,7 @@
"*query"
],
"kwargs": {},
"code": "cursor.execute(*query)",
"code": "(Transaction().connection.cursor()).execute(*(table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))))",
"phase": "after_super",
"condition": "party_h.column_exist('lang')"
},
@@ -368,7 +368,7 @@
"*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))"
],
"kwargs": {},
"code": "cursor.execute(*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null)))",
"code": "(Transaction().connection.cursor()).execute(*party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null)))",
"phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
},
@@ -387,7 +387,7 @@
"kwargs": {
"where": "(party.vat_number != Null) | (party.vat_country != Null)"
},
"code": "party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))",
"code": "party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null))",
"phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
},
@@ -432,7 +432,7 @@
"*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit'))",
"code": "(Transaction().connection.cursor()).execute(*table.update([table.type], ['cn_ric'],\n where=(table.type == 'cn_rit')))",
"phase": "after_super"
},
{
@@ -449,7 +449,7 @@
"kwargs": {
"where": "table.type == 'cn_rit'"
},
"code": "table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')",
"code": "table.update([table.type], ['cn_ric'],\n where=(table.type == 'cn_rit'))",
"phase": "after_super"
}
]
+11 -11
View File
@@ -41,7 +41,7 @@
"*table.update([table.suffix_code], [table.code])"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.suffix_code], [table.code]))",
"code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.suffix_code],\n [table.code]))",
"phase": "after_super",
"condition": "fill_suffix_code"
},
@@ -57,7 +57,7 @@
"[table.code]"
],
"kwargs": {},
"code": "table.update([table.suffix_code], [table.code])",
"code": "table.update(\n [table.suffix_code],\n [table.code])",
"phase": "after_super",
"condition": "fill_suffix_code"
}
@@ -114,7 +114,7 @@
"ProductCostPrice._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(ProductCostPrice._table)",
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
"phase": "before_super"
},
{
@@ -129,7 +129,7 @@
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns])))",
"code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns])))",
"phase": "after_super",
"condition": "cost_price_table.column_exist('template')"
},
@@ -146,7 +146,7 @@
"columns": "[Column(sql_table, c) for c in columns]",
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
},
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
"code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns]))",
"phase": "after_super",
"condition": "cost_price_table.column_exist('template')"
},
@@ -161,7 +161,7 @@
"*[Column(cost_price, c) for c in columns]"
],
"kwargs": {},
"code": "cost_price.select(*[Column(cost_price, c) for c in columns])",
"code": "cost_price.select(\n *[Column(cost_price, c) for c in columns])",
"phase": "after_super",
"condition": "cost_price_table.column_exist('template')"
}
@@ -214,7 +214,7 @@
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))))",
"code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))))",
"phase": "after_super",
"condition": "table.column_exist('template')"
},
@@ -230,7 +230,7 @@
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
},
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
"code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super",
"condition": "table.column_exist('template')"
},
@@ -245,7 +245,7 @@
"kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)"
},
"code": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))",
"code": "sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super",
"condition": "table.column_exist('template')"
},
@@ -260,7 +260,7 @@
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
"code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super",
"condition": "table.column_exist('template')"
},
@@ -275,7 +275,7 @@
"kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)"
},
"code": "sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))",
"code": "sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super",
"condition": "table.column_exist('template')"
},
+4 -4
View File
@@ -79,7 +79,7 @@
"*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null)))",
"code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null)))",
"phase": "after_super"
},
{
@@ -96,7 +96,7 @@
"kwargs": {
"where": "(table.planned_start_date == Null) & (table.planned_date != Null)"
},
"code": "table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))",
"code": "table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null))",
"phase": "after_super"
},
{
@@ -110,7 +110,7 @@
"*table.update([table.state], ['cancelled'], where=table.state == 'cancel')"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.state], ['cancelled'], where=table.state == 'cancel'))",
"code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel'))",
"phase": "after_super"
},
{
@@ -127,7 +127,7 @@
"kwargs": {
"where": "table.state == 'cancel'"
},
"code": "table.update([table.state], ['cancelled'], where=table.state == 'cancel')",
"code": "table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel')",
"phase": "after_super"
}
]
+4 -4
View File
@@ -19,7 +19,7 @@
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
],
"kwargs": {},
"code": "cursor.execute(*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new]))",
"code": "(Transaction().connection.cursor()).execute(*sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new]))",
"phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')"
},
@@ -35,7 +35,7 @@
"columns": "[sqltable.password_hash]",
"values": "[password_hash_new]"
},
"code": "sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])",
"code": "sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new])",
"phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')"
},
@@ -96,7 +96,7 @@
"*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))"
],
"kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')))",
"code": "(Transaction().connection.cursor()).execute(*model_data.update(\n [model_data.noupdate], [True],\n where=(model_data.model == cls.__name__)\n & (model_data.module == 'res')\n & (model_data.fs_id == 'user_admin')))",
"phase": "after_super"
},
{
@@ -113,7 +113,7 @@
"kwargs": {
"where": "(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')"
},
"code": "model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))",
"code": "model_data.update(\n [model_data.noupdate], [True],\n where=(model_data.model == cls.__name__)\n & (model_data.module == 'res')\n & (model_data.fs_id == 'user_admin'))",
"phase": "after_super"
}
]
+2 -2
View File
@@ -17,7 +17,7 @@
"*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)"
],
"kwargs": {},
"code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))",
"code": "(connection.cursor()).execute(*template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template))",
"phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
},
@@ -32,7 +32,7 @@
"kwargs": {
"distinct_on": "template_lot_type.template"
},
"code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)",
"code": "template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template)",
"phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
}