[7.0/trunk] sale line margin is not computed if no product is selected
Bug #1218212 reported by
Andrius Preimantas @ hbee
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Low
|
OpenERP R&D Addons Team 3 |
Bug Description
addons revno: 9358
Steps to reproduce:
1. Install sale_margin module
2. Create sale order line with Product, Cost Price and Price fields set
3. Save sale order and observe Margin field correctly computed
4. Open the same line and remove Product field (leaving Cost Price and Price fields as they were)
5. Save sale order and observe Margin field NOT computing at all
It turns out, if no product is selected, the system just ignores margin, although values for Cost Price and Price which are mandatory to compute margin is present.
Please see patch attached
Related branches
lp:~openerp-dev/openobject-addons/trunk-bug-1218212-ypa
Ready for review
for merging
into
lp:openobject-addons
- Amit Parik (community): Approve
- OpenERP Core Team: Pending requested
-
Diff: 26 lines (+5/-6)1 file modifiedsale_margin/sale_margin.py (+5/-6)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
importance: | Undecided → Low |
status: | New → Confirmed |
tags: | added: margin sale |
To post a comment you must log in.
Hello,
It has been fixed in https:/ /code.launchpad .net/~openerp- dev/openobject- addons/ trunk-bug- 1218212- ypa
Revision id = <email address hidden>
Revision no = 8876
It will be available in trunk soon.
Thanks