Public Access
several small fixes:
- systemmodule ir und res aufgenommen - Version auf Major.Minor reduziert - reihenfolge der Module fixiert
This commit is contained in:
@@ -0,0 +1,106 @@
|
||||
{
|
||||
"version": "7.0",
|
||||
"module": "company",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/res.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"line": 116,
|
||||
"operations": [
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 130,
|
||||
"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": 130,
|
||||
"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": 132,
|
||||
"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": 135,
|
||||
"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": 135,
|
||||
"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": 137,
|
||||
"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": 141,
|
||||
"args": [
|
||||
"'main_company'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.drop_column('main_company')",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
{
|
||||
"version": "7.0",
|
||||
"module": "country",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"class": "Country",
|
||||
"method": "__register__",
|
||||
"line": 178,
|
||||
"operations": [
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 187,
|
||||
"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": 187,
|
||||
"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": 424,
|
||||
"operations": [
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 435,
|
||||
"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": 435,
|
||||
"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": 439,
|
||||
"args": [
|
||||
"'type'"
|
||||
],
|
||||
"kwargs": {
|
||||
"action": "'remove'"
|
||||
},
|
||||
"code": "table_h.not_null_action('type', action='remove')",
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"line": 442,
|
||||
"args": [
|
||||
"'code'"
|
||||
],
|
||||
"kwargs": {
|
||||
"action": "'remove'"
|
||||
},
|
||||
"code": "table_h.not_null_action('code', action='remove')",
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"class": "PostalCode",
|
||||
"method": "__register__",
|
||||
"line": 507,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"line": 511,
|
||||
"args": [
|
||||
"'zip'",
|
||||
"'postal_code'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.column_rename('zip', 'postal_code')",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"version": "7.0",
|
||||
"module": "currency",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/currency/currency.py",
|
||||
"class": "Currency",
|
||||
"method": "__register__",
|
||||
"line": 72,
|
||||
"operations": [
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 83,
|
||||
"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": 83,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"where": "(data.module == 'currency') & (data.model == cls.__name__)"
|
||||
},
|
||||
"code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))",
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"line": 87,
|
||||
"args": [
|
||||
"'symbol'",
|
||||
"'remove'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.not_null_action('symbol', 'remove')",
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,382 @@
|
||||
{
|
||||
"version": "7.0",
|
||||
"module": "ir",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"class": "ActionActWindowView",
|
||||
"method": "__register__",
|
||||
"line": 952,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"line": 958,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
"'remove'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.not_null_action('sequence', 'remove')",
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"class": "ActionActWindowDomain",
|
||||
"method": "__register__",
|
||||
"line": 1001,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"line": 1007,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
"'remove'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.not_null_action('sequence', 'remove')",
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py",
|
||||
"class": "Cron",
|
||||
"method": "__register__",
|
||||
"line": 92,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"line": 103,
|
||||
"args": [
|
||||
"'next_call'",
|
||||
"'remove'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.not_null_action('next_call', 'remove')",
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/export.py",
|
||||
"class": "Export",
|
||||
"method": "__register__",
|
||||
"line": 56,
|
||||
"operations": [
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 67,
|
||||
"args": [
|
||||
"*table.update([table.user], [table.create_uid])"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*table.update([table.user], [table.create_uid]))",
|
||||
"phase": "after_super",
|
||||
"condition": "not user_exists"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"line": 67,
|
||||
"args": [
|
||||
"[table.user]",
|
||||
"[table.create_uid]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.update([table.user], [table.create_uid])",
|
||||
"phase": "after_super",
|
||||
"condition": "not user_exists"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"class": "ModelButton",
|
||||
"method": "__register__",
|
||||
"line": 887,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"line": 893,
|
||||
"args": [
|
||||
"'name_model_uniq'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.drop_constraint('name_model_uniq')",
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"class": "ModelData",
|
||||
"method": "__register__",
|
||||
"line": 1219,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"line": 1225,
|
||||
"args": [
|
||||
"'db_id'"
|
||||
],
|
||||
"kwargs": {
|
||||
"action": "'remove'"
|
||||
},
|
||||
"code": "table_h.not_null_action('db_id', action='remove')",
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"class": "ModuleConfigWizardItem",
|
||||
"method": "__register__",
|
||||
"line": 323,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"line": 329,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
"'remove'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.not_null_action('sequence', 'remove')",
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"class": "SequenceType",
|
||||
"method": "__register__",
|
||||
"line": 41,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"line": 47,
|
||||
"args": [
|
||||
"'code'"
|
||||
],
|
||||
"kwargs": {
|
||||
"action": "'remove'"
|
||||
},
|
||||
"code": "table_h.not_null_action('code', action='remove')",
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"class": "Sequence",
|
||||
"method": "__register__",
|
||||
"line": 122,
|
||||
"operations": [
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 135,
|
||||
"args": [
|
||||
"*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)))",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('code')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"line": 135,
|
||||
"args": [
|
||||
"[table.sequence_type]",
|
||||
"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))",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('code')"
|
||||
},
|
||||
{
|
||||
"object": "sequence_type",
|
||||
"operation": "select",
|
||||
"line": 137,
|
||||
"args": [
|
||||
"sequence_type.id"
|
||||
],
|
||||
"kwargs": {
|
||||
"where": "sequence_type.code == table.code"
|
||||
},
|
||||
"code": "sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('code')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"line": 140,
|
||||
"args": [
|
||||
"'code'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.drop_column('code')",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('code')"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py",
|
||||
"class": "Translation",
|
||||
"method": "__register__",
|
||||
"line": 115,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"line": 120,
|
||||
"args": [
|
||||
"'translation_md5_uniq'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.drop_constraint('translation_md5_uniq')",
|
||||
"phase": "before_super",
|
||||
"condition": "table.column_exist('src_md5')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"line": 121,
|
||||
"args": [
|
||||
"'src_md5'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.drop_column('src_md5')",
|
||||
"phase": "before_super",
|
||||
"condition": "table.column_exist('src_md5')"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"class": "Trigger",
|
||||
"method": "__register__",
|
||||
"line": 79,
|
||||
"operations": [
|
||||
{
|
||||
"object": "model",
|
||||
"operation": "select",
|
||||
"line": 92,
|
||||
"args": [
|
||||
"model.model"
|
||||
],
|
||||
"kwargs": {
|
||||
"where": "model.id == sql_table.action_model"
|
||||
},
|
||||
"code": "model.select(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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 94,
|
||||
"args": [
|
||||
"*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))]))",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"line": 94,
|
||||
"args": [
|
||||
"[sql_table.action]",
|
||||
"[Concat(action_model, Concat('|', sql_table.action_function))]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"line": 98,
|
||||
"args": [
|
||||
"'action_model'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.drop_column('action_model')",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"line": 99,
|
||||
"args": [
|
||||
"'action_function'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.drop_column('action_function')",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py",
|
||||
"class": "Icon",
|
||||
"method": "__register__",
|
||||
"line": 31,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"line": 37,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
"'remove'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.not_null_action('sequence', 'remove')",
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py",
|
||||
"class": "ViewSearch",
|
||||
"method": "__register__",
|
||||
"line": 616,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"line": 621,
|
||||
"args": [
|
||||
"'user'",
|
||||
"'remove'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.not_null_action('user', 'remove')",
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,202 @@
|
||||
{
|
||||
"version": "7.0",
|
||||
"module": "party",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"class": "Address",
|
||||
"method": "__register__",
|
||||
"line": 84,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "column_rename",
|
||||
"line": 88,
|
||||
"args": [
|
||||
"'zip'",
|
||||
"'postal_code'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.column_rename('zip', 'postal_code')",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"class": "AddressFormat",
|
||||
"method": "__register__",
|
||||
"line": 303,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"line": 318,
|
||||
"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": 320,
|
||||
"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": 323,
|
||||
"args": [
|
||||
"*query"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*query)",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"line": 324,
|
||||
"args": [
|
||||
"'country'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.drop_column('country')",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"line": 328,
|
||||
"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": 330,
|
||||
"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": 333,
|
||||
"args": [
|
||||
"*query"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*query)",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"line": 334,
|
||||
"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/configuration.py",
|
||||
"class": "Configuration",
|
||||
"method": "__register__",
|
||||
"line": 34,
|
||||
"operations": [
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 45,
|
||||
"args": [
|
||||
"*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)]))",
|
||||
"phase": "after_super",
|
||||
"condition": "configuration.identifier_types != identifier_types"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"line": 45,
|
||||
"args": [
|
||||
"[table.identifier_types]",
|
||||
"[cls.identifier_types.sql_format(identifier_types)]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])",
|
||||
"phase": "after_super",
|
||||
"condition": "configuration.identifier_types != identifier_types"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"class": "Identifier",
|
||||
"method": "__register__",
|
||||
"line": 780,
|
||||
"operations": [
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 787,
|
||||
"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": 787,
|
||||
"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,39 @@
|
||||
{
|
||||
"version": "7.0",
|
||||
"module": "product",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"class": "Product",
|
||||
"method": "__register__",
|
||||
"line": 494,
|
||||
"operations": [
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 505,
|
||||
"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": 505,
|
||||
"args": [
|
||||
"[table.suffix_code]",
|
||||
"[table.code]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.update([table.suffix_code], [table.code])",
|
||||
"phase": "after_super",
|
||||
"condition": "fill_suffix_code"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"version": "7.0",
|
||||
"module": "product_measurements",
|
||||
"files": []
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"version": "7.0",
|
||||
"module": "production",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/bom.py",
|
||||
"class": "BOMInput",
|
||||
"method": "__register__",
|
||||
"line": 72,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"line": 78,
|
||||
"args": [
|
||||
"'uom'",
|
||||
"'unit'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.column_rename('uom', 'unit')",
|
||||
"phase": "before_super",
|
||||
"condition": "table_h.column_exist('uom') and (not table_h.column_exist('unit'))"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"line": 84,
|
||||
"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": 264,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"line": 270,
|
||||
"args": [
|
||||
"'uom'",
|
||||
"'unit'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.column_rename('uom', 'unit')",
|
||||
"phase": "before_super",
|
||||
"condition": "table_h.column_exist('uom') and (not table_h.column_exist('unit'))"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 278,
|
||||
"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": 278,
|
||||
"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": "7.0",
|
||||
"module": "production_split",
|
||||
"files": []
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"version": "7.0",
|
||||
"module": "res",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"line": 207,
|
||||
"operations": [
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"line": 215,
|
||||
"args": [
|
||||
"*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')))",
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"line": 215,
|
||||
"args": [
|
||||
"[model_data.noupdate]",
|
||||
"[True]"
|
||||
],
|
||||
"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'))",
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"version": "7.0",
|
||||
"module": "stock_lot",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py",
|
||||
"class": "Template",
|
||||
"method": "__register__",
|
||||
"line": 63,
|
||||
"operations": [
|
||||
{
|
||||
"object": "cursor_select",
|
||||
"operation": "execute",
|
||||
"line": 85,
|
||||
"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": 85,
|
||||
"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": "7.0",
|
||||
"module": "stock_lot_sled",
|
||||
"files": []
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"version": "7.0",
|
||||
"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": "7.0",
|
||||
"module": "stock_split",
|
||||
"files": []
|
||||
}
|
||||
Reference in New Issue
Block a user