Losing decimal precision

Bug #929483 reported by Paulius Sladkevičius @ hbee
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Medium
OpenERP Publisher's Warranty Team

Bug Description

Hello,

I see that bug https://bugs.launchpad.net/openobject-addons/+bug/820423 was marked duplicate but seems its mistake. We have same behavior on the OpenERP v6.0.3. When we use 2 databases on the same server and change for A database f.e. Sale decimal precision to 4 decimals and then login to B database where is 2 decimal precision for Sale, then in the A database precision drops to 2 like is in the B database. You can follow by these steps to reproduce:

1. Create A and B database.
1. On A database set for sale decimal precision 4
2. Create sale order with lines and check if decimals are 4
2. Login to B database, where sale deciaml precision is 2
3. Go back to A and reopen previously created sale order.

Result observed: A database sale order show 2 decimals
Result expected: A database sale order show 4 decimals

Tags: maintenance
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Paulius,

I don't think this type of problem should be appears because I have checked the code and I have seen that the 'sale price ' decimal accuracy is created on product_data.xml. We have already used a noupdate="1" at product_data.xml.

I think you have missed something.
I have also tried you described steps but all are working fine, So would you please check it again and notify us,

Thanks and waiting for your reply!

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Paulius Sladkevičius @ hbee (komsas) wrote :

Hello Amit,

please check my video, its shows where is problem.

Changed in openobject-addons:
status: Incomplete → New
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Paulius,

Thanks lot for your reply and proper video!

I have faced the same problem for all decimal precision, So as a generic way I am assign this to Framework team.

Thank you!

affects: openobject-addons → openobject-server
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Medium
status: New → Confirmed
Changed in openobject-server:
assignee: OpenERP's Framework R&D (openerp-dev-framework) → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Revision history for this message
Vo Minh Thu (thu) wrote :

Fix available in trunk:

revno: 4062
revision-id: <email address hidden>

(It should be straightforward to do the same in stable.)

Changed in openobject-server:
status: Confirmed → In Progress
Revision history for this message
Paulius Sladkevičius @ hbee (komsas) wrote :

Will it be added in the v6.0?

Revision history for this message
Rifakat Husen (OpenERP) (rha-openerp) wrote :
Changed in openobject-server:
status: In Progress → Fix Committed
Revision history for this message
Rifakat Husen (OpenERP) (rha-openerp) wrote :

landed on stable 6.0, rev 3611 Revision ID: <email address hidden>

Changed in openobject-server:
status: Fix Committed → Fix Released
Revision history for this message
Christophe Simonis (OpenERP) (kangol) wrote :

Not all cases of this bug where fixed.
A correct fix land in 7.0 at revid 5204 <email address hidden>
It can be back ported to 6.x on demand.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.