← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 716292] Re: [6.0.1 stable] default_focus with on_change on same form stops flow of data entry

 

Hello Robin,

I have faced the same problem after putting default_focus="1" in
product_id field of sale_order_line. I am agree that it is the issue.

But I wanted to know from your side that uom field is m2o field in
product form i.e only one value as uom for each and every product. So
here we have written the on_change() method for product_id, which will
set all other fields as the uom, description etc.

So Whenever you will change the uom it will check for related product so
the focus went back to product.

It is better to change the uom from product form instead in sale-order-
line. Hope you agree with this.

Waiting for your reply.

Thanks.

** Changed in: openobject-server
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/716292

Title:
  [6.0.1 stable] default_focus with on_change on same form stops flow of
  data entry

Status in OpenERP Server:
  Incomplete

Bug description:
  To the form that adds order lines to a sale order, we added
  default_focus=”1” (form id is view_order_form_inherit_1 in the
  sale_layout_view.xml).

  The idea was to enable user to input data quickly using keyboard and
  not mouse (at prospective users request).

  Then enter a product and tab to the UOM and try and change it. It then
  set focus back to the product id field (very annoying for the user).

  It appears as if default_focus should not be activated by an on_change
  event.

  This would ensure smooth and efficient data entry.



References