Sales using Secondary UoM show incorrect unit price
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Low
|
OpenERP R&D Addons Team 3 | |||
OpenERP Community Backports (Addons) | Status tracked in 7.0 | |||||
6.1 |
New
|
Undecided
|
Unassigned | |||
7.0 |
New
|
Undecided
|
Unassigned |
Bug Description
OpenERP version: openerp-
retested using runbot.openerp.com : 6_1_1953_base (as of dec 12, 2012)
Preparations:
1) On runbot selecting the base (6_1_1953_base) install the module "sale".
2) go to Sales -> Configurations -> Products -> Units of Measure -> UoM Categories
and create the new category "Area"
3) go to Sales -> Configurations -> Products -> Units of Measure -> Units of Measure
and create the new unit "m²" of UoM Category "Area" as the base unit.
4) go to Sales -> Products -> Products
and create new product "metal plate" using default unit of measure "m", Unit of sales as "m²" and UoM -> UoS Coeff = 0.95
leave price at 1.00.
(This would be typical when for example cutting metal plates that are 0.95 m wide and 3m long)
Test:
1) Go to Sales -> Sales -> Sales Orders and create a new sale
2) choose a random client and add the newly created product from our preparations i.e. "metal plate", and specify quantity = 10 m.
3) Click "Print Quotation"
Notice error in resulting PDF:
Qty is correctly set to 9.500 m², however price pr unit = 1.00, which is incorrect as that was the price for UoM, not UoS.
4) confirm the order and print final order.
Notice the same error is in resulting pdf.
5) Create the invoice
Notice the invoice got the correct unit price of 1.05, but now the total value is has changed to 9.97 instead of 10.00! This might not be a problem, though 1.05 x 9.5 = 9.975 which was expected to be rounded up rather than down.
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 37 lines (+5/-2)2 files modifiedsale/report/sale_order.py (+3/-0)
sale/report/sale_order.rml (+2/-2)
- Alejandro Santana (community): Needs Information
- Serv. Tecnológicos Avanzados - Pedro M. Baeza: Pending requested
-
Diff: 131 lines (+11/-43)1 file modifiedsale/report/sale_order.rml (+11/-43)
- Alejandro Santana (community): Needs Information
- Holger Brunn (Therp): Needs Fixing (code review)
-
Diff: 22 lines (+2/-2)1 file modifiedsale/report/sale_order.rml (+2/-2)
Changed in openobject-addons: | |
status: | New → Confirmed |
importance: | Undecided → Low |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
summary: |
- Sales using Secondary UdM show incorrect unit price + Sales using Secondary UoM show incorrect unit price |
Hello,
It has been Fixed in : lp:~openerp-dev/openobject-addons/trunk-bug-1089229-rmu
Revno: 8504
Revision ID: <email address hidden>
It will be merged soon with trunk
Thanks,