← Back to team overview

credativ team mailing list archive

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

 

Hello Manfred Rockel,

Thanks for reporting and your contribution, the solution of this bug is proposed in
branch lp:~openerp-dev/openobject-addons/trunk-bug-907715-bde
with following Revision ID and Number:

Revision ID: bde@xxxxxxxxxxx-20111222120959-dsk7b6lspzcxk3vm
Revision Number: 6119

The solution will be merged in main addons soon.

Thanks & Regards,
Devnani Bharat R.

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

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