[trunk] [7.0] stock.check_assign ignores decimal precision
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned | |||
OpenERP Community Backports (Addons) | Status tracked in 7.0 | |||||
7.0 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
To reproduce:
Create a manufactured product with a bom that includes a quantity which can't be represented as a float proper, i.e. 0.033. Create a production order for this product and confirm the production.
Now have a look on the moves created: You'll find a quantity of 0.0330000000000
Analysis:
In
http://
we update the database directly, thereby circumventing the decimal precision adjustments for product_qty and product_uos_qty. I think changing this to
move.write(
already fixes the problem.
Related branches
- Stefan Rijnhart (Opener) (community): Approve
- OpenERP Core Team: Pending requested
-
Diff: 16 lines (+5/-1)1 file modifiedstock/stock.py (+5/-1)
- Stefan Rijnhart (Opener): Approve
- Sandy Carter (http://www.savoirfairelinux.com): Approve (code review)
-
Diff: 16 lines (+5/-1)1 file modifiedstock/stock.py (+5/-1)
To reproduce, you need python2.6 in most cases