lp:~fabien-morin/unifield-server/fm-us-2888

Created by Fabien MORIN and last modified
Get this branch:
bzr branch lp:~fabien-morin/unifield-server/fm-us-2888
Only Fabien MORIN can upload to this branch. If you are Fabien MORIN please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Fabien MORIN
Project:
Unifield Server
Status:
Development

Recent revisions

4357. By Fabien MORIN

US-2888 [IMP] if offset is used, then the NO_ORDER is dangerous and should not
be present.

4356. By Fabien MORIN

US-2888 [FIX] as initial.stock.inventory share code with stock.inventory,
handle the case of initial inventory call of action_confirm.

4355. By Fabien MORIN

US-2888 [IMP] Do not order on place there is no need to do it:
order a search to give the result to a read/read_flat is useless as it will be
reordered in this methods.
order to build a dict is useless as a dict is not ordered.

4354. By Fabien MORIN

US-2888 [FIX] not_chained=True must be set during the _inventory_line_hook. It
has been removed by mistake
[IMP] cosmetic changes

4353. By Fabien MORIN

US-2888 [MERGE] with latest trunk

4352. By Fabien MORIN

US-2888 [IMP] revert to the original revision

4351. By Fabien MORIN

US-2888 [FIX] do not escape the '' as there is no more need to do it.
[FIX] update move_vals in all cases as the value getted on inventory_line can
be different than the one in move_vals. This doesn't change the small perf
improvments on the Physical Inventory validation as in this case inventory_line
is None (because the values are always set into move_vals).
[FIX] revert the order='NO_ORDER' has it have some side effect: in some cases
the name_get method don't use a read but a browse (which don't re-order the
result but uses the same order than ids), in this case the order would be
different from the previous behaviour.

4350. By Fabien MORIN

US-2888 [ADD] explanations

4349. By Fabien MORIN

US-2888 [IMP] make inventory line faster by doing less request:
before starting to iterate on all lines, gather all informations needed by
doing one request per information for all lines (instead of one request per
information per line).

Do not use browse which is horrible in term of performance when iterate on a
lot of object and access a lot of sub objects of them, for example:

location_id = line.product_id.product_tmpl_id.property_stock_inventory.id

=> this line is horribly slow.

[IMP] pass some informations to the methods when we have it to avoid the method
to do requests to find it (comment, reason_type_id)

4348. By Fabien MORIN

US-2888 [IMP] add index on columns that are slow and frequently used

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:unifield-server
This branch contains Public information 
Everyone can see this information.

Subscribers