Public Access
165 lines
6.1 KiB
Markdown
165 lines
6.1 KiB
Markdown
# 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
|
|
- **after_super** `execute`
|
|
- condition: `fill_suffix_code`
|
|
- object: `cursor`
|
|
- args: `*table.update([table.suffix_code], [table.code])`
|
|
- **after_super** `update`
|
|
- condition: `fill_suffix_code`
|
|
- object: `table`
|
|
- args: `[table.suffix_code], [table.code]`
|
|
|
|
## Klasse ProductCostPrice
|
|
|
|
|
|
### 5.0
|
|
|
|
file: /home/uha4/tmp/tryton/modules/product/product.py : 429
|
|
- **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'`
|
|
|
|
|
|
### 5.6
|
|
|
|
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
|
|
- **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.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]`
|
|
|
|
## Klasse ProductListPrice
|
|
|
|
|
|
### 5.6
|
|
|
|
file: /home/uha4/tmp/tryton/modules/product/product.py : 551
|
|
- **before_super** `table_exist`
|
|
- object: `backend.TableHandler`
|
|
- args: `cls._table`
|
|
|