Public Access
now included shellscript and results
This commit is contained in:
@@ -0,0 +1,106 @@
|
||||
{
|
||||
"version": "6.4.16",
|
||||
"module": "company",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/res.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"line": 69,
|
||||
"operations": [
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 83,
|
||||
"args": [
|
||||
"*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)))",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
{
|
||||
"object": "user_company",
|
||||
"operation": "insert",
|
||||
"line": 83,
|
||||
"args": [
|
||||
"[user_company.user, user_company.company]",
|
||||
"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))",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "select",
|
||||
"line": 85,
|
||||
"args": [
|
||||
"table.id",
|
||||
"table.main_company"
|
||||
],
|
||||
"kwargs": {
|
||||
"where": "table.main_company != Null"
|
||||
},
|
||||
"code": "table.select(table.id, table.main_company, where=table.main_company != Null)",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 88,
|
||||
"args": [
|
||||
"*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))))",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
{
|
||||
"object": "user_company",
|
||||
"operation": "insert",
|
||||
"line": 88,
|
||||
"args": [
|
||||
"[user_company.user, user_company.company]",
|
||||
"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)))",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "select",
|
||||
"line": 90,
|
||||
"args": [
|
||||
"table.id",
|
||||
"table.company"
|
||||
],
|
||||
"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))",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"line": 94,
|
||||
"args": [
|
||||
"'main_company'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.drop_column('main_company')",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
{
|
||||
"version": "6.4.16",
|
||||
"module": "country",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"class": "Country",
|
||||
"method": "__register__",
|
||||
"line": 31,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"line": 42,
|
||||
"args": [
|
||||
"'name_uniq'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.drop_constraint('name_uniq')",
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"line": 43,
|
||||
"args": [
|
||||
"'code_uniq'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.drop_constraint('code_uniq')",
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"line": 46,
|
||||
"args": [
|
||||
"'code'",
|
||||
"'remove'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.not_null_action('code', 'remove')",
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 49,
|
||||
"args": [
|
||||
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))",
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"line": 49,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"where": "(data.module == 'country') & (data.model == cls.__name__)"
|
||||
},
|
||||
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))",
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"class": "Subdivision",
|
||||
"method": "__register__",
|
||||
"line": 256,
|
||||
"operations": [
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 267,
|
||||
"args": [
|
||||
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))",
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"line": 267,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"where": "(data.module == 'country') & (data.model == cls.__name__)"
|
||||
},
|
||||
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))",
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"line": 271,
|
||||
"args": [
|
||||
"'type'"
|
||||
],
|
||||
"kwargs": {
|
||||
"action": "'remove'"
|
||||
},
|
||||
"code": "table_h.not_null_action('type', action='remove')",
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"class": "PostalCode",
|
||||
"method": "__register__",
|
||||
"line": 328,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"line": 332,
|
||||
"args": [
|
||||
"'zip'",
|
||||
"'postal_code'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.column_rename('zip', 'postal_code')",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"version": "6.4.16",
|
||||
"module": "currency",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/currency/currency.py",
|
||||
"class": "Currency",
|
||||
"method": "__register__",
|
||||
"line": 59,
|
||||
"operations": [
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 76,
|
||||
"args": [
|
||||
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))",
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"line": 76,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"where": "(data.module == 'currency') & (data.model == cls.__name__)"
|
||||
},
|
||||
"code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))",
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,355 @@
|
||||
{
|
||||
"version": "6.4.16",
|
||||
"module": "party",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"class": "Address",
|
||||
"method": "__register__",
|
||||
"line": 76,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "column_rename",
|
||||
"line": 82,
|
||||
"args": [
|
||||
"'zip'",
|
||||
"'postal_code'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.column_rename('zip', 'postal_code')",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 93,
|
||||
"args": [
|
||||
"*sql_table.update([sql_table.street], [value])"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.update([sql_table.street], [value]))",
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('streetbis')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"line": 93,
|
||||
"args": [
|
||||
"[sql_table.street]",
|
||||
"[value]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "sql_table.update([sql_table.street], [value])",
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('streetbis')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"line": 96,
|
||||
"args": [
|
||||
"'streetbis'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.drop_column('streetbis')",
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('streetbis')"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"class": "AddressFormat",
|
||||
"method": "__register__",
|
||||
"line": 295,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"line": 310,
|
||||
"args": [
|
||||
"[table.country_code]",
|
||||
"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))",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
{
|
||||
"object": "country",
|
||||
"operation": "select",
|
||||
"line": 312,
|
||||
"args": [
|
||||
"country.code"
|
||||
],
|
||||
"kwargs": {
|
||||
"where": "country.id == table.country"
|
||||
},
|
||||
"code": "country.select(country.code, where=country.id == table.country)",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 315,
|
||||
"args": [
|
||||
"*query"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*query)",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"line": 316,
|
||||
"args": [
|
||||
"'country'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.drop_column('country')",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"line": 320,
|
||||
"args": [
|
||||
"[table.language_code]",
|
||||
"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))",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
{
|
||||
"object": "language",
|
||||
"operation": "select",
|
||||
"line": 322,
|
||||
"args": [
|
||||
"Substring(language.code, 0, 2)"
|
||||
],
|
||||
"kwargs": {
|
||||
"where": "language.id == table.language"
|
||||
},
|
||||
"code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 325,
|
||||
"args": [
|
||||
"*query"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*query)",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"line": 326,
|
||||
"args": [
|
||||
"'language'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.drop_column('language')",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/category.py",
|
||||
"class": "Category",
|
||||
"method": "__register__",
|
||||
"line": 35,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"line": 41,
|
||||
"args": [
|
||||
"'name_parent_uniq'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.drop_constraint('name_parent_uniq')",
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"class": "Party",
|
||||
"method": "__register__",
|
||||
"line": 102,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"line": 108,
|
||||
"args": [
|
||||
"'name'",
|
||||
"'remove'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.not_null_action('name', 'remove')",
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 356,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "insert",
|
||||
"line": 369,
|
||||
"args": [
|
||||
"[table.party, table.lang]",
|
||||
"party.select(party.id, party.lang)"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.insert([table.party, table.lang], party.select(party.id, party.lang))",
|
||||
"phase": "after_super",
|
||||
"condition": "party_h.column_exist('lang')"
|
||||
},
|
||||
{
|
||||
"object": "party",
|
||||
"operation": "select",
|
||||
"line": 371,
|
||||
"args": [
|
||||
"party.id",
|
||||
"party.lang"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "party.select(party.id, party.lang)",
|
||||
"phase": "after_super",
|
||||
"condition": "party_h.column_exist('lang')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 372,
|
||||
"args": [
|
||||
"*query"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*query)",
|
||||
"phase": "after_super",
|
||||
"condition": "party_h.column_exist('lang')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"line": 373,
|
||||
"args": [
|
||||
"'lang'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "party_h.drop_column('lang')",
|
||||
"phase": "after_super",
|
||||
"condition": "party_h.column_exist('lang')"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"class": "Identifier",
|
||||
"method": "__register__",
|
||||
"line": 636,
|
||||
"operations": [
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 649,
|
||||
"args": [
|
||||
"*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)))",
|
||||
"phase": "after_super",
|
||||
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
|
||||
},
|
||||
{
|
||||
"object": "party",
|
||||
"operation": "select",
|
||||
"line": 649,
|
||||
"args": [
|
||||
"party.id",
|
||||
"party.vat_number",
|
||||
"party.vat_country"
|
||||
],
|
||||
"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))",
|
||||
"phase": "after_super",
|
||||
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"line": 666,
|
||||
"args": [
|
||||
"'vat_number'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "party_h.drop_column('vat_number')",
|
||||
"phase": "after_super",
|
||||
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"line": 667,
|
||||
"args": [
|
||||
"'vat_country'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "party_h.drop_column('vat_country')",
|
||||
"phase": "after_super",
|
||||
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 670,
|
||||
"args": [
|
||||
"*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'))",
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"line": 670,
|
||||
"args": [
|
||||
"[table.type]",
|
||||
"['cn_ric']"
|
||||
],
|
||||
"kwargs": {
|
||||
"where": "table.type == 'cn_rit'"
|
||||
},
|
||||
"code": "table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')",
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,180 @@
|
||||
{
|
||||
"version": "6.4.16",
|
||||
"module": "product",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"class": "Product",
|
||||
"method": "__register__",
|
||||
"line": 424,
|
||||
"operations": [
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 435,
|
||||
"args": [
|
||||
"*table.update([table.suffix_code], [table.code])"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*table.update([table.suffix_code], [table.code]))",
|
||||
"phase": "after_super",
|
||||
"condition": "fill_suffix_code"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"line": 435,
|
||||
"args": [
|
||||
"[table.suffix_code]",
|
||||
"[table.code]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.update([table.suffix_code], [table.code])",
|
||||
"phase": "after_super",
|
||||
"condition": "fill_suffix_code"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"class": "ProductCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 669,
|
||||
"operations": [
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 692,
|
||||
"args": [
|
||||
"*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])))",
|
||||
"phase": "after_super",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "insert",
|
||||
"line": 692,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"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]))",
|
||||
"phase": "after_super",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
},
|
||||
{
|
||||
"object": "cost_price",
|
||||
"operation": "select",
|
||||
"line": 694,
|
||||
"args": [
|
||||
"*[Column(cost_price, c) for c in columns]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cost_price.select(*[Column(cost_price, c) for c in columns])",
|
||||
"phase": "after_super",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"class": "ProductCostPrice",
|
||||
"method": "__register__",
|
||||
"line": 734,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "add_column",
|
||||
"line": 748,
|
||||
"args": [
|
||||
"'template'",
|
||||
"'INTEGER'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.add_column('template', 'INTEGER')",
|
||||
"phase": "after_super",
|
||||
"condition": "not exist"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 755,
|
||||
"args": [
|
||||
"*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))))",
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "insert",
|
||||
"line": 755,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"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)))",
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table.join(product, condition=sql_table.template == product.template)",
|
||||
"operation": "select",
|
||||
"line": 758,
|
||||
"args": [
|
||||
"*[Column(sql_table, c) for c in columns] + [product.id]"
|
||||
],
|
||||
"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))",
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 765,
|
||||
"args": [
|
||||
"*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)))",
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "delete",
|
||||
"line": 765,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"where": "(sql_table.template != Null) & (sql_table.product == Null)"
|
||||
},
|
||||
"code": "sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))",
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"line": 768,
|
||||
"args": [
|
||||
"'template'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.drop_column('template')",
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('template')"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"version": "6.4.16",
|
||||
"module": "product_measurements",
|
||||
"files": []
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
{
|
||||
"version": "6.4.16",
|
||||
"module": "production",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/bom.py",
|
||||
"class": "BOMInput",
|
||||
"method": "__register__",
|
||||
"line": 70,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"line": 75,
|
||||
"args": [
|
||||
"'product_bom_uniq'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.drop_constraint('product_bom_uniq')",
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
|
||||
"class": "Production",
|
||||
"method": "__register__",
|
||||
"line": 250,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"line": 256,
|
||||
"args": [
|
||||
"'code'",
|
||||
"'number'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.column_rename('code', 'number')",
|
||||
"phase": "before_super",
|
||||
"condition": "table_h.column_exist('code')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 262,
|
||||
"args": [
|
||||
"*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)))",
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"line": 262,
|
||||
"args": [
|
||||
"[table.planned_start_date]",
|
||||
"[table.planned_date]"
|
||||
],
|
||||
"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))",
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 269,
|
||||
"args": [
|
||||
"*table.update([table.state], ['cancelled'], where=table.state == 'cancel')"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*table.update([table.state], ['cancelled'], where=table.state == 'cancel'))",
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"line": 269,
|
||||
"args": [
|
||||
"[table.state]",
|
||||
"['cancelled']"
|
||||
],
|
||||
"kwargs": {
|
||||
"where": "table.state == 'cancel'"
|
||||
},
|
||||
"code": "table.update([table.state], ['cancelled'], where=table.state == 'cancel')",
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"version": "6.4.16",
|
||||
"module": "production_split",
|
||||
"files": []
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"version": "6.4.16",
|
||||
"module": "stock_lot",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py",
|
||||
"class": "Template",
|
||||
"method": "__register__",
|
||||
"line": 60,
|
||||
"operations": [
|
||||
{
|
||||
"object": "cursor_select",
|
||||
"operation": "execute",
|
||||
"line": 82,
|
||||
"args": [
|
||||
"*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))",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
},
|
||||
{
|
||||
"object": "template_lot_type",
|
||||
"operation": "select",
|
||||
"line": 82,
|
||||
"args": [
|
||||
"template_lot_type.template"
|
||||
],
|
||||
"kwargs": {
|
||||
"distinct_on": "template_lot_type.template"
|
||||
},
|
||||
"code": "template_lot_type.select(template_lot_type.template, 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)"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"version": "6.4.16",
|
||||
"module": "stock_lot_sled",
|
||||
"files": []
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"version": "6.4.16",
|
||||
"module": "stock_product_location",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py",
|
||||
"class": "ProductLocation",
|
||||
"method": "__register__",
|
||||
"line": 41,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"line": 47,
|
||||
"args": [
|
||||
"'product'",
|
||||
"'remove'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.not_null_action('product', 'remove')",
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"version": "6.4.16",
|
||||
"module": "stock_split",
|
||||
"files": []
|
||||
}
|
||||
Reference in New Issue
Block a user