c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #06170
[Bug 683127] Re: product save
I've found out that it is due to the sale module which has product.py
code that adds pricelist_recalculate function and two new function
fields in product_product module but I cannot find any use of that code?
Is it neccessary? If I exclude "import product" from __init__.py it
works fine but is that ok?
Excluding "import product" is just for testing. Naturally I would
inherit that function and make it to do nothing but I'm just not sure if
that fields are used anywhere?
Those fields contain prices by produclists and look like:
Default Purchase Pricelist (0.00) : 100.00
It can contain more than one row and it looks like an info field. Is
this a bug -> something like a "future use" which is never used and just
slows down the save of products?
--
product save
https://bugs.launchpad.net/bugs/683127
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject Addons Modules: New
Bug description:
Hi!
I have a problem with saving product (it is more than 1min long). I've found out that it is due to pricelists. I have more than 3000 pricelists and more than 15000 items in pricelists. Products and pricelists are connected through ir_property table in database and i have more than 5000 records in it (for sale and purchase pricelists and some sale pricelists are shared with multiple partners).
If I delete everything from pricelists in database, saving is done immediately (less than 1 sec). I think that it should work ok even with this amount of data and I suppose that it can be fixed by custom indexes?
And another question is: why is saving product doing anything with pricelists? Is it checking margins or something?
References