← Back to team overview

openerp-india team mailing list archive

[Bug 1220323] Re: [trunk/7.0] [warning] On change for PO lines in warning module overwrites existing values

 

** Attachment added: "purchase order line.ogv"
   https://bugs.launchpad.net/openobject-addons/+bug/1220323/+attachment/3812672/+files/purchase%20order%20line.ogv

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

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

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

-- 
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/1220323

Title:
  [trunk/7.0] [warning] On change for PO lines in warning module
  overwrites existing values

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  With the warning module installed, when creating a new PO line without
  a product, the on change_product_id() function will reset all values:

  if not product:
              return {'value': {'price_unit': 0.0, 'name':'','notes':'', 'product_uom' : False}, 'domain':{'product_uom':[]}}

  This should send back the existing values, not reset them.

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


References