← Back to team overview

openerp-india team mailing list archive

[Bug 1218212] Re: [7.0/trunk] sale line margin is not computed if no product is selected

 

** Changed in: openobject-addons
   Importance: Undecided => Low

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 3 (openerp-dev-addons3)

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1218212

Title:
  [7.0/trunk] sale line margin is not computed if no product is selected

Status in OpenERP Addons (modules):
  Confirmed

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1218212/+subscriptions


References