← Back to team overview

credativ team mailing list archive

[Bug 907715] Re: Missing passing context in sale_order_line function(product_uom_change)

 

** Changed in: openobject-addons
       Status: Confirmed => In Progress

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

Title:
  Missing passing context in sale_order_line
  function(product_uom_change)

Status in OpenERP Addons (modules):
  Fix Committed

Bug description:
  Missing passing context in sale_order_line
  function(product_uom_change)

  OpenERP(trunk)

      def product_uom_change(self, cursor, user, ids, pricelist, product, qty=0,
              uom=False, qty_uos=0, uos=False, name='', partner_id=False,
              lang=False, update_tax=True, date_order=False, context=None):
          context = context or {}
          lang = lang or ('lang' in context and context['lang'])
          res = self.product_id_change(cursor, user, ids, pricelist, product,
                  qty=qty, uom=uom, qty_uos=qty_uos, uos=uos, name=name,
                  partner_id=partner_id, lang=lang, update_tax=update_tax,
  -                date_order=date_order)
  +                date_order=date_order, context=context)
          if 'product_uom' in res['value']:
              del res['value']['product_uom']
          if not uom:
              res['value']['price_unit'] = 0.0
          return res

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


References