extract gets and saves most tables worked on

some cases still need some work...
This commit is contained in:
2026-08-08 22:32:31 +02:00
parent f14f709649
commit 24caf23986
151 changed files with 7017 additions and 1215 deletions
+31 -22
View File
@@ -1,7 +1,38 @@
# company
## Klasse ConfigurationLang
### 5.6
file: /home/uha4/tmp/tryton/modules/company/party.py : 20
- **before_super** `table_exist`
- object: `backend.TableHandler`
- args: `cls._table`
## Klasse CronCompany
### 7.2
file: /home/uha4/tmp/tryton/modules/company/ir.py : 102
- **before_super** `table_rename`
- object: `backend.TableHandler`
- args: `'cron_company_rel', cls._table`
## Klasse PartyLang
### 5.6
file: /home/uha4/tmp/tryton/modules/company/party.py : 43
- **before_super** `table_exist`
- object: `backend.TableHandler`
- args: `cls._table`
## Klasse User
### 6.0
file: /home/uha4/tmp/tryton/modules/company/res.py : 72
@@ -38,25 +69,3 @@ file: /home/uha4/tmp/tryton/modules/company/res.py : 72
- object: `table_h`
- args: `'main_company'`
### 6.2
### 6.4
### 6.6
### 6.8
### 7.0
### 7.2
### 7.4
+6 -84
View File
@@ -2,6 +2,7 @@
## Klasse Country
### 5.0
file: /home/uha4/tmp/tryton/modules/country/country.py : 29
@@ -16,9 +17,6 @@ file: /home/uha4/tmp/tryton/modules/country/country.py : 29
- args: `'code', 'remove'`
### 5.2
### 5.4
file: /home/uha4/tmp/tryton/modules/country/country.py : 32
@@ -31,27 +29,6 @@ file: /home/uha4/tmp/tryton/modules/country/country.py : 32
- where: `(data.module == 'country') & (data.model == cls.__name__)`
### 5.6
### 5.8
### 6.0
### 6.2
### 6.4
### 6.6
### 6.8
### 7.0
file: /home/uha4/tmp/tryton/modules/country/country.py : 178
@@ -63,46 +40,22 @@ file: /home/uha4/tmp/tryton/modules/country/country.py : 178
- kwargs:
- where: `(data.module == 'country') & (data.model == cls.__name__)`
### 7.2
### 7.4
## Klasse PostalCode
### 6.0
file: /home/uha4/tmp/tryton/modules/country/country.py : 287
- **before_super** `table_rename`
- object: `backend.TableHandler`
- args: `'country_zip', cls._table`
- **before_super** `column_rename`
- object: `table_h`
- args: `'zip', 'postal_code'`
### 6.2
### 6.4
### 6.6
### 6.8
### 7.0
### 7.2
### 7.4
## Klasse Subdivision
### 5.4
file: /home/uha4/tmp/tryton/modules/country/country.py : 216
@@ -115,18 +68,6 @@ file: /home/uha4/tmp/tryton/modules/country/country.py : 216
- where: `(data.module == 'country') & (data.model == cls.__name__)`
### 5.6
### 5.8
### 6.0
### 6.2
### 6.4
file: /home/uha4/tmp/tryton/modules/country/country.py : 256
@@ -147,18 +88,6 @@ file: /home/uha4/tmp/tryton/modules/country/country.py : 433
- action: `'remove'`
### 6.8
### 7.0
### 7.2
### 7.4
### 7.6
file: /home/uha4/tmp/tryton/modules/country/country.py : 401
@@ -173,10 +102,3 @@ file: /home/uha4/tmp/tryton/modules/country/country.py : 401
- kwargs:
- action: `'remove'`
### 7.8
### 8.0
+2 -44
View File
@@ -2,6 +2,7 @@
## Klasse Currency
### 5.4
file: /home/uha4/tmp/tryton/modules/currency/currency.py : 53
@@ -14,24 +15,6 @@ file: /home/uha4/tmp/tryton/modules/currency/currency.py : 53
- where: `(data.module == 'currency') & (data.model == cls.__name__)`
### 5.6
### 5.8
### 6.0
### 6.2
### 6.4
### 6.6
### 6.8
file: /home/uha4/tmp/tryton/modules/currency/currency.py : 72
@@ -40,15 +23,6 @@ file: /home/uha4/tmp/tryton/modules/currency/currency.py : 72
- args: `'symbol', 'remove'`
### 7.0
### 7.2
### 7.4
### 7.6
file: /home/uha4/tmp/tryton/modules/currency/currency.py : 77
@@ -56,15 +30,9 @@ file: /home/uha4/tmp/tryton/modules/currency/currency.py : 77
- object: `table_h`
- args: `'symbol', 'remove'`
### 7.8
### 8.0
## Klasse CurrencyRate
### 7.4
file: /home/uha4/tmp/tryton/modules/currency/currency.py : 304
@@ -72,13 +40,3 @@ file: /home/uha4/tmp/tryton/modules/currency/currency.py : 304
- object: `table_h`
- args: `'check_currency_rate'`
### 7.6
### 7.8
### 8.0
+82 -638
View File
File diff suppressed because it is too large Load Diff
+40 -185
View File
@@ -2,6 +2,7 @@
## Klasse Address
### 5.0
file: /home/uha4/tmp/tryton/modules/party/address.py : 61
@@ -19,18 +20,6 @@ file: /home/uha4/tmp/tryton/modules/party/address.py : 61
- args: `'streetbis'`
### 5.2
### 5.4
### 5.6
### 5.8
### 6.0
file: /home/uha4/tmp/tryton/modules/party/address.py : 67
@@ -51,18 +40,6 @@ file: /home/uha4/tmp/tryton/modules/party/address.py : 67
- args: `'streetbis'`
### 6.2
### 6.4
### 6.6
### 6.8
### 7.0
file: /home/uha4/tmp/tryton/modules/party/address.py : 84
@@ -71,12 +48,6 @@ file: /home/uha4/tmp/tryton/modules/party/address.py : 84
- args: `'zip', 'postal_code'`
### 7.2
### 7.4
### 7.6
file: /home/uha4/tmp/tryton/modules/party/address.py : 160
@@ -87,15 +58,9 @@ file: /home/uha4/tmp/tryton/modules/party/address.py : 160
- object: `table`
- args: `'name', 'building_name'`
### 7.8
### 8.0
## Klasse AddressFormat
### 5.4
file: /home/uha4/tmp/tryton/modules/party/address.py : 271
@@ -136,39 +101,9 @@ file: /home/uha4/tmp/tryton/modules/party/address.py : 271
- object: `table_h`
- args: `'language'`
### 5.6
### 5.8
### 6.0
### 6.2
### 6.4
### 6.6
### 6.8
### 7.0
### 7.2
### 7.4
## Klasse Category
### 5.0
file: /home/uha4/tmp/tryton/modules/party/category.py : 43
@@ -176,36 +111,9 @@ file: /home/uha4/tmp/tryton/modules/party/category.py : 43
- object: `table_h`
- args: `'name_parent_uniq'`
### 5.2
### 5.4
### 5.6
### 5.8
### 6.0
### 6.2
### 6.4
### 6.6
### 6.8
## Klasse Configuration
### 7.0
file: /home/uha4/tmp/tryton/modules/party/configuration.py : 34
@@ -218,24 +126,9 @@ file: /home/uha4/tmp/tryton/modules/party/configuration.py : 34
- object: `table`
- args: `[table.identifier_types], [cls.identifier_types.sql_format(identifier_types)]`
### 7.2
### 7.4
### 7.6
### 7.8
### 8.0
## Klasse Identifier
### 5.6
file: /home/uha4/tmp/tryton/modules/party/party.py : 428
@@ -259,9 +152,6 @@ file: /home/uha4/tmp/tryton/modules/party/party.py : 428
- args: `'vat_country'`
### 5.8
### 6.0
file: /home/uha4/tmp/tryton/modules/party/party.py : 515
@@ -275,18 +165,6 @@ file: /home/uha4/tmp/tryton/modules/party/party.py : 515
- where: `table.type == 'cn_rit'`
### 6.2
### 6.4
### 6.6
### 6.8
### 7.0
file: /home/uha4/tmp/tryton/modules/party/party.py : 780
@@ -300,9 +178,6 @@ file: /home/uha4/tmp/tryton/modules/party/party.py : 780
- where: `table.type == 'cn_rit'`
### 7.2
### 7.4
file: /home/uha4/tmp/tryton/modules/party/party.py : 823
@@ -337,9 +212,6 @@ file: /home/uha4/tmp/tryton/modules/party/party.py : 825
- where: `table.type == 'co_rut'`
### 7.8
### 8.0
file: /home/uha4/tmp/tryton/modules/party/party.py : 859
@@ -360,9 +232,9 @@ file: /home/uha4/tmp/tryton/modules/party/party.py : 859
- kwargs:
- where: `table.type == 'si_businessid'`
## Klasse Party
### 5.0
file: /home/uha4/tmp/tryton/modules/party/party.py : 89
@@ -370,36 +242,19 @@ file: /home/uha4/tmp/tryton/modules/party/party.py : 89
- object: `table_h`
- args: `'name', 'remove'`
### 5.2
## Klasse PartyCategory
### 5.4
### 5.6
### 5.8
### 6.0
### 6.2
### 6.4
### 6.6
### 6.8
### 7.2
file: /home/uha4/tmp/tryton/modules/party/party.py : 448
- **before_super** `table_rename`
- object: `backend.TableHandler`
- args: `'party_category_rel', cls._table`
## Klasse PartyIdentifier
### 5.0
file: /home/uha4/tmp/tryton/modules/party/party.py : 329
@@ -422,15 +277,9 @@ file: /home/uha4/tmp/tryton/modules/party/party.py : 329
- object: `party_h`
- args: `'vat_country'`
### 5.2
### 5.4
## Klasse PartyLang
### 5.0
file: /home/uha4/tmp/tryton/modules/party/party.py : 265
@@ -452,30 +301,36 @@ file: /home/uha4/tmp/tryton/modules/party/party.py : 265
- args: `'lang'`
### 5.2
### 5.6
file: /home/uha4/tmp/tryton/modules/party/party.py : 268
- **before_super** `table_exist`
- object: `backend.TableHandler`
- args: `cls._table`
- **after_super** `insert`
- condition: `party_h.column_exist('lang')`
- object: `table`
- args: `[table.party, table.lang], party.select(party.id, party.lang)`
- **after_super** `select`
- condition: `party_h.column_exist('lang')`
- object: `party`
- args: `party.id, party.lang`
- **after_super** `execute`
- condition: `party_h.column_exist('lang')`
- object: `cursor`
- args: `*query`
- **after_super** `drop_column`
- condition: `party_h.column_exist('lang')`
- object: `party_h`
- args: `'lang'`
### 5.4
## Klasse _ConfigurationValue
### 5.6
### 5.8
### 6.0
### 6.2
### 6.4
### 6.6
### 6.8
file: /home/uha4/tmp/tryton/modules/party/configuration.py : 40
- **before_super** `table_exist`
- object: `backend.TableHandler`
- args: `cls._table`
+77 -72
View File
@@ -1,7 +1,18 @@
# product
## Klasse ConfigurationDefaultCostPriceMethod
### 5.6
file: /home/uha4/tmp/tryton/modules/product/configuration.py : 48
- **before_super** `table_exist`
- object: `backend.TableHandler`
- args: `cls._table`
## Klasse Product
### 5.6
file: /home/uha4/tmp/tryton/modules/product/product.py : 360
@@ -14,36 +25,9 @@ file: /home/uha4/tmp/tryton/modules/product/product.py : 360
- object: `table`
- args: `[table.suffix_code], [table.code]`
### 5.8
### 6.0
### 6.2
### 6.4
### 6.6
### 6.8
### 7.0
### 7.2
### 7.4
## Klasse ProductCostPrice
### 5.0
file: /home/uha4/tmp/tryton/modules/product/product.py : 429
@@ -82,35 +66,49 @@ file: /home/uha4/tmp/tryton/modules/product/product.py : 429
- args: `'template'`
### 5.2
### 5.4
### 5.6
### 5.8
### 6.0
### 6.2
### 6.4
### 6.6
### 6.8
file: /home/uha4/tmp/tryton/modules/product/product.py : 634
- **before_super** `table_exist`
- object: `backend.TableHandler`
- args: `cls._table`
- **after_super** `add_column`
- condition: `not exist`
- object: `table`
- args: `'template', 'INTEGER'`
- **after_super** `execute`
- condition: `table.column_exist('template')`
- object: `cursor`
- 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)))`
- **after_super** `insert`
- condition: `table.column_exist('template')`
- object: `sql_table`
- 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))`
- **after_super** `select`
- condition: `table.column_exist('template')`
- object: `sql_table.join(product, condition=sql_table.template == product.template)`
- args: `*[Column(sql_table, c) for c in columns] + [product.id]`
- kwargs:
- where: `(sql_table.template != Null) & (sql_table.product == Null)`
- **after_super** `execute`
- condition: `table.column_exist('template')`
- object: `cursor`
- args: `*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))`
- **after_super** `delete`
- condition: `table.column_exist('template')`
- object: `sql_table`
- kwargs:
- where: `(sql_table.template != Null) & (sql_table.product == Null)`
- **after_super** `drop_column`
- condition: `table.column_exist('template')`
- object: `table`
- args: `'template'`
## Klasse ProductCostPriceMethod
### 5.0
file: /home/uha4/tmp/tryton/modules/product/product.py : 374
@@ -130,30 +128,37 @@ file: /home/uha4/tmp/tryton/modules/product/product.py : 374
- args: `*[Column(cost_price, c) for c in columns]`
### 5.2
### 5.6
file: /home/uha4/tmp/tryton/modules/product/product.py : 578
- **before_super** `table_exist`
- object: `backend.TableHandler`
- args: `cls._table`
- **before_super** `table_exist`
- object: `backend.TableHandler`
- args: `ProductCostPrice._table`
- **after_super** `execute`
- condition: `cost_price_table.column_exist('template')`
- object: `cursor`
- 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]))`
- **after_super** `insert`
- condition: `cost_price_table.column_exist('template')`
- object: `sql_table`
- kwargs:
- columns: `[Column(sql_table, c) for c in columns]`
- values: `cost_price.select(*[Column(cost_price, c) for c in columns])`
- **after_super** `select`
- condition: `cost_price_table.column_exist('template')`
- object: `cost_price`
- args: `*[Column(cost_price, c) for c in columns]`
### 5.4
## Klasse ProductListPrice
### 5.6
### 5.8
### 6.0
### 6.2
### 6.4
### 6.6
### 6.8
file: /home/uha4/tmp/tryton/modules/product/product.py : 551
- **before_super** `table_exist`
- object: `backend.TableHandler`
- args: `cls._table`
+10 -69
View File
@@ -2,6 +2,7 @@
## Klasse BOMInput
### 6.2
file: /home/uha4/tmp/tryton/modules/production/bom.py : 70
@@ -10,15 +11,6 @@ file: /home/uha4/tmp/tryton/modules/production/bom.py : 70
- args: `'product_bom_uniq'`
### 6.4
### 6.6
### 6.8
### 7.0
file: /home/uha4/tmp/tryton/modules/production/bom.py : 72
@@ -31,15 +23,6 @@ file: /home/uha4/tmp/tryton/modules/production/bom.py : 72
- args: `'product_bom_uniq'`
### 7.2
### 7.4
### 7.6
### 7.8
file: /home/uha4/tmp/tryton/modules/production/bom.py : 208
@@ -47,12 +30,19 @@ file: /home/uha4/tmp/tryton/modules/production/bom.py : 208
- object: `table_h`
- args: `'product', 'remove'`
## Klasse ConfigurationProductionSequence
### 8.0
### 5.6
file: /home/uha4/tmp/tryton/modules/production/configuration.py : 43
- **before_super** `table_exist`
- object: `backend.TableHandler`
- args: `cls._table`
## Klasse Cron
### 7.2
file: /home/uha4/tmp/tryton/modules/production/ir.py : 19
@@ -65,21 +55,9 @@ file: /home/uha4/tmp/tryton/modules/production/ir.py : 19
- kwargs:
- where: `table.method == 'production|assign_cron'`
### 7.4
### 7.6
### 7.8
### 8.0
## Klasse Production
### 5.0
file: /home/uha4/tmp/tryton/modules/production/production.py : 224
@@ -97,15 +75,6 @@ file: /home/uha4/tmp/tryton/modules/production/production.py : 224
- where: `(table.planned_start_date == Null) & (table.planned_date != Null)`
### 5.2
### 5.4
### 5.6
### 5.8
file: /home/uha4/tmp/tryton/modules/production/production.py : 254
@@ -119,21 +88,6 @@ file: /home/uha4/tmp/tryton/modules/production/production.py : 254
- where: `table.state == 'cancel'`
### 6.0
### 6.2
### 6.4
### 6.6
### 6.8
### 7.0
file: /home/uha4/tmp/tryton/modules/production/production.py : 264
@@ -151,12 +105,6 @@ file: /home/uha4/tmp/tryton/modules/production/production.py : 264
- where: `table.state == 'cancel'`
### 7.2
### 7.4
### 7.6
file: /home/uha4/tmp/tryton/modules/production/production.py : 267
@@ -165,10 +113,3 @@ file: /home/uha4/tmp/tryton/modules/production/production.py : 267
- object: `table_h`
- args: `'uom', 'unit'`
### 7.8
### 8.0
+1 -37
View File
@@ -2,6 +2,7 @@
## Klasse User
### 5.0
file: /home/uha4/tmp/tryton/trytond/trytond/res/user.py : 200
@@ -30,15 +31,6 @@ file: /home/uha4/tmp/tryton/trytond/trytond/res/user.py : 200
- action: `'remove'`
### 5.2
### 5.4
### 5.6
### 5.8
file: /home/uha4/tmp/tryton/trytond/trytond/res/user.py : 191
@@ -52,21 +44,6 @@ file: /home/uha4/tmp/tryton/trytond/trytond/res/user.py : 191
- where: `(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')`
### 6.0
### 6.2
### 6.4
### 6.6
### 6.8
### 7.0
file: /home/uha4/tmp/tryton/trytond/trytond/res/user.py : 207
@@ -80,12 +57,6 @@ file: /home/uha4/tmp/tryton/trytond/trytond/res/user.py : 207
- where: `(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')`
### 7.2
### 7.4
### 7.6
file: /home/uha4/tmp/tryton/trytond/trytond/res/user.py : 195
@@ -93,10 +64,3 @@ file: /home/uha4/tmp/tryton/trytond/trytond/res/user.py : 195
- object: `table_h`
- args: `'menu', 'remove'`
### 7.8
### 8.0
+1 -31
View File
@@ -2,6 +2,7 @@
## Klasse Template
### 5.4
file: /home/uha4/tmp/tryton/modules/stock_lot/product.py : 29
@@ -16,34 +17,3 @@ file: /home/uha4/tmp/tryton/modules/stock_lot/product.py : 29
- kwargs:
- distinct_on: `template_lot_type.template`
### 5.6
### 5.8
### 6.0
### 6.2
### 6.4
### 6.6
### 6.8
### 7.0
### 7.2
### 7.4
+1 -25
View File
@@ -2,6 +2,7 @@
## Klasse ProductLocation
### 5.8
file: /home/uha4/tmp/tryton/modules/stock_product_location/location.py : 43
@@ -9,28 +10,3 @@ file: /home/uha4/tmp/tryton/modules/stock_product_location/location.py : 43
- object: `table`
- args: `'product', 'remove'`
### 6.0
### 6.2
### 6.4
### 6.6
### 6.8
### 7.0
### 7.2
### 7.4