Merge lp:~openerp-dev/openobject-server/6.0-opw-383628-xal into lp:openobject-server/6.0
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Naresh(OpenERP) | ||||
Approved revision: | 3611 | ||||
Merged at revision: | 3611 | ||||
Proposed branch: | lp:~openerp-dev/openobject-server/6.0-opw-383628-xal | ||||
Merge into: | lp:openobject-server/6.0 | ||||
Diff against target: |
53 lines (+23/-0) 1 file modified
bin/osv/osv.py (+23/-0) |
||||
To merge this branch: | bzr merge lp:~openerp-dev/openobject-server/6.0-opw-383628-xal | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Naresh(OpenERP) | Pending | ||
Review via email: mp+100559@code.launchpad.net |
Description of the change
Hi,
This force copy of "float" fields upon module loading, so that the "digits" cache inside the fields is specific to the pool, not server-wide. This was causing problem of decimal precision changing server-wide when connecter to a new DB.
NOTE: This is a backport of v6.1, but the fix in v6.1 only work for inherited object, base objects are still facing the problem - this MP will fix both.
Steps:
- Create a database "A" - with sale module
- Create a database "B" - with sale module
- Connect to database "A", change "Sale" precision to 4, check on sale order line - precision is 4.
- Connect to database "B"
- Re-connect to database "A", check on sale order line - precision is now 2 (*wrong*)
Current: float field precision are overwritten uppon when a new database is loaded
Expected: float field precision should be per-pool (per database)