c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #18810
[Bug 726592] Re: [6.0] ir.property created even if the value is the same as generic property
Hello,
I don't think this is a nice-to-have but a real issue.
I see 2 usages for properties :
- different values for a field on multi-companies
- possibility to have default values on a field
This bug breaks the second usage, which was perfectly working on OpenERP 5.0.
I give you an example :
You have these categories with accounts:
Version 5.0 and expected behavior :
- category A - account 4200 (default property)
--- category A1 - account 4200 (default property)
--- category A2 - account 4200 (default property)
--- category A3 - account 4210 (own property)
- category B - account 4200 (default property)
--- category B1 - account 4200 (default property)
--- category B2 - account 4200 (default property)
With this behavior, if you change the default property, all your
categories will be updated with the new account.
But now in version 6.0 ::
- category A - account 4200 (own property)
--- category A1 - account 4200 (own property)
--- category A2 - account 4200 (own property)
--- category A3 - account 4210 (own property)
- category B - account 4200 (own property)
--- category B1 - account 4200 (own property)
--- category B2 - account 4200 (own property)
If you modify the default property, nothing will happen, you will have
to modify the property on each category !
Moreover, this is a big performance cruncher because lines are rapidly
increasing in the table ir.property, for example, with 3 properties on
products, with 10'000 products you'll have 30'000 lines in ir.property,
just add a property and you'll have 40'000 lines.
Thanks to reconsider this bug.
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/726592
Title:
[6.0] ir.property created even if the value is the same as generic
property
Status in OpenERP Server:
Confirmed
Bug description:
Hello,
This issue happens on the 6.0 stable (I reproduced the bug on the
revno 3353).
The problem is that new ir properties are created each time you create
a new object (like product category or product), even if you don't
select another value than the default value.
To reproduce it :
1) bzr branch on openerp 6 stable branches
2) create a new database with demo data
3) do the configuration wizard, check the Sales Management in the step "Install Applications"
4) go to the Administration > Configuration > Parameters > Configuration Parameters and take note of the generic property_account_expense_categ value (ie. "4200 Achats de marchandises article X") and the generic property_account_income_categ value (ie. "1000 Caisse principale")
5) go to Sales > Configuration > Product > Products Categories
6) create a new category, only fill the name field, don't change the accounting properties
7) return to the Configuration Parameters and see that there is two new properties property_account_expense_categ and property_account_income_categ binded with your new category, open them
8) see that their values are the same that the default property
I hope my explanation is clear.
Thanks
Guewen
Follow ups
References