lp:~fabien-morin/unifield-server/perf_improvement_merged

Created by Fabien MORIN and last modified
Get this branch:
bzr branch lp:~fabien-morin/unifield-server/perf_improvement_merged
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

3895. By Fabien MORIN

US-1246 [FIX] revert to trunk version as the behaviour was not exacly the same
than before.

3894. By Fabien MORIN

US-1246 [IMP] merge with latest trunk

3893. By Fabien MORIN

US-1246 [IMP] merge two confirm_and_force_assign methods in one for more
clarity.

3892. By Fabien MORIN

US-1246 [FIX] in some condition amount should be added to total and some other
decreased :
if 10 product are going in the stock and 2 are going out, the result of the
    stock should be 8, not 12.

3891. By Fabien MORIN

US-1246 [FIX] other integer fields.function by setting a different multi key
(same problem than previous commit)

3890. By Fabien MORIN

US-1246 [FIX] qty_per_pack and num_of_packs should not use the same multi
field.function as they are waiting fore different type of result (integer,
float) and because the method will call only one time for both of the two
fields, it is wrong to do like that.
I create a new method _get_num_of_pack only for num_of_packs to avoid this
conflict.

3889. By Fabien MORIN

US-1246 [FIX] add a check for diff_properties. There is no need to look for
permission if there is no fields to check permission. (in this case, this new
if avoid a crash).

3888. By Fabien MORIN

US-1246 [IMP] Do not read all values but only the required ones

3887. By Fabien MORIN

US-1246 [FIX] the read on osv_memory doesn't work same way than the read
osv_osv : in osv_osv.read(), many2one properties are returned like (id, name)
ex. product_obj.read(cr, uid, ids, ['product_tmpl_id']) will return
[{'id':3424, 'product_tmpl_id':(879, 'name of product tmpl')}]

but with osv_memory we will have only the id (no tuple). This is a bug, but
before to fix the origin of the bug, I will first fix the new code to get it
working by removing the [0]

3886. By Fabien MORIN

US-1246 [FIX] initialise result properly

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