← Back to team overview

openerp-india team mailing list archive

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

 

Public bug reported:

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.

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
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):
  New

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


Follow ups

References