← Back to team overview

openerp-india team mailing list archive

[Bug 1006243] Re: [6.1] inherited view on_change does not work

 

That was my mistakes. I just defined wrong params for on_change method.
Solved.

Please ignore this bug report. Thanks

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

Title:
  [6.1] inherited view on_change does not work

Status in OpenERP Server:
  New

Bug description:
  
  I defined inherited form view on sale.order model. Changing product_id field on_change attribute

  <xpath expr='//page[@string="Order Line"]/group/field[@name="product_id"]' position="attributes">
                <attribute name="on_change">product_id_change(parent.pricelist_id,product_id,parent.payment_term,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, 'lang' in context and context['lang'], True, parent.date_order, product_packaging, parent.fiscal_position, False, parent.shop_id, parent.sales_type, tax_id, expire_range)</attribute>
                <attribute name="required">1</attribute>
            </xpath>

  
  When i select a product then on_change method does not called. And getting this errors

  ----------------------------------------
  Exception happened during processing of request from ('127.0.0.1', 45354)
  Traceback (most recent call last):
    File "/usr/lib/python2.7/SocketServer.py", line 582, in process_request_thread
      self.finish_request(request, client_address)
    File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request
      self.RequestHandlerClass(request, client_address, self)
    File "/usr/lib/python2.7/SocketServer.py", line 640, in __init__
      self.finish()
    File "/usr/lib/python2.7/SocketServer.py", line 693, in finish
      self.wfile.flush()
    File "/usr/lib/python2.7/socket.py", line 303, in flush
      self._sock.sendall(view[write_offset:write_offset+buffer_size])
  error: [Errno 32] Broken pipe
  ----------------------------------------

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


References