[6.0] ir.property created even if the value is the same as generic property
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) | Status tracked in Trunk | |||||
6.0 |
Fix Released
|
Medium
|
OpenERP Publisher's Warranty Team | |||
Trunk |
Fix Released
|
Medium
|
OpenERP's Framework R&D |
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_
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_
8) see that their values are the same that the default property
I hope my explanation is clear.
Thanks
Guewen
Related branches
- Yogesh (SerpentCS) (community): Needs Resubmitting
- Vo Minh Thu (community): Needs Fixing
- Naresh(OpenERP) (community): Approve
-
Diff: 45 lines (+11/-3)1 file modifiedopenerp/osv/fields.py (+11/-3)
- Raphael Collet (OpenERP) (community): Approve
- Rifakat Husen (OpenERP) (community): Needs Resubmitting
-
Diff: 27 lines (+8/-1)1 file modifiedbin/osv/fields.py (+8/-1)
Changed in openobject-server: | |
status: | Confirmed → In Progress |
Hello Guewen,
Thanks for reporting. I am confirming the issue as it is making the duplicate entries in database with the same value as generic property.
If one create new category of any product and did not change any of accounting properties then it should be consider under the generic property as we did with the demo data of category.
But if one makes the category with changes in accounting properties then we allow to create the new one instead of generic.
Hope you will agree with this.
Thanks.