odoo/addons/stock_account
Denis Ledoux 279f225cf0 [IMP] mrp, stock, stock_account: compute stored fields trigger
This is a performance revision.

Some stored functions field were recomputed uselessly.

In mrp, `hour_total` and `cycle_total` were recomputed
at each write on `mrp.production`, while they should be recomputed
only when there is a change on the `workcenter_lines` field,
or when there is a change in the `hour` or `cycle` field
of these `workcenter_lines`.

In stock, `min_date`, `max_date` and `priority` of
`stock.picking` were recomputed each time a new move
was added to the picking,
wether or not the 'expected_date' of this move
was between the `stock.picking` `min_date` and `max_date`,
and the priority not greater.

In stock, `product_qty` of `stock.move` was recomputed
at each write on the `stock.move`, while it should be
recomputed only when there is a change in `product_id`,
`product_uom` or `product_uom_qty`, as the computation
method only depends on these three fields.

In stock_account, the `invoice_state` of `stock.picking`
was recomputed each time a new `stock.move` was associated
to the picking, wether or not the `invoice_state` of the move
was already the same than the `invoice_state` of the picking.

opw-643560
2015-06-30 13:12:37 +02:00
..
i18n [I18N] Update translation terms from Transifex 2015-06-29 08:42:08 +02:00
security [IMP] Add security rules from bzr branch 2014-05-21 17:34:19 +02:00
wizard [FIX] stock_account: stock valuation report performances 2015-06-15 16:28:13 +02:00
__init__.py [IMP] Change Generating Accounting Entries to something in stock_account which has a group as before, also stock_invoice_directly goes with it 2014-04-10 13:25:36 +02:00
__openerp__.py [DEL] Cleaning: key 'images' removed from all __openerp__.py 2015-01-06 14:20:38 +01:00
product.py [IMP] Stock valuation: Avoid consumables with real-time valuation 2015-05-12 09:53:20 +02:00
product_data.xml [WIP] Add YML files and check stock/shipment.yml, make sure stock_account takes all the files(__openerp__.py) and that way start handling problems purchase fifo lifo tests 2013-07-18 18:47:15 +02:00
product_view.xml [IMP] Stock valuation: Avoid consumables with real-time valuation 2015-05-12 09:53:20 +02:00
res_config.py [IMP] When landed costs are installed, it should automatically generate accounting entries 2014-09-03 19:18:17 +02:00
res_config_view.xml [IMP] When landed costs are installed, it should automatically generate accounting entries 2014-09-03 19:18:17 +02:00
stock.py [IMP] mrp, stock, stock_account: compute stored fields trigger 2015-06-30 13:12:37 +02:00
stock_account.py [FIX] stock_account: average cost in multi-company environment 2015-05-18 11:49:55 +02:00
stock_account_data.xml [FIX] Default valuation has to be on product template 2014-06-23 10:25:49 +02:00
stock_account_demo.xml
stock_account_view.xml [IMP] Put default_invoice_state in context of move_lines of picking. 2014-12-18 10:13:37 +01:00