← Back to team overview

openerp-india team mailing list archive

[Bug 1003999] [NEW] behaviors difference between GTK and web clients

 

Public bug reported:

Hello,

client6.1 : rev 2062
web 6.    : rev 2331
server6.1: rev 4175
addon6.1: rev 6807

On wizard stock_partial_picking,
stock_partial_picking.py and stock_partial_picking_view.xml reveal a behavior difference between two clients.

In stock_partial_picking.py, the field hide_tracking is declared :
'hide_tracking': fields.function(_hide_tracking, string='Tracking', type='boolean', help='This field is for internal purpose. It is used to decide if the column prodlot has to be shown on the move_ids field or not'),

On stock_partial_picking_view.xml (line 20), hide_tracking is used by context.
<field name="move_ids" colspan="4" nolabel="1" mode="tree,form" width="550" height="200" context="{'hide_tracking': hide_tracking}">
It's used after to hide/show prodlot_id (on line 26):
<field name="prodlot_id" domain="[('product_id', '=', product_id)]" invisible="context.get('hide_tracking',False)" attrs="{'required':[('tracking','=',True)]}"/>

GTK client seems to work correctly, while web client has an anormal behavior :
GTK client hides prodlot_id because used products are not tracked
but Web client still shows prodlot_id!

** 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/1003999

Title:
  behaviors difference between GTK and web clients

Status in OpenERP Addons (modules):
  New

Bug description:
  Hello,

  client6.1 : rev 2062
  web 6.    : rev 2331
  server6.1: rev 4175
  addon6.1: rev 6807

  On wizard stock_partial_picking,
  stock_partial_picking.py and stock_partial_picking_view.xml reveal a behavior difference between two clients.

  In stock_partial_picking.py, the field hide_tracking is declared :
  'hide_tracking': fields.function(_hide_tracking, string='Tracking', type='boolean', help='This field is for internal purpose. It is used to decide if the column prodlot has to be shown on the move_ids field or not'),

  On stock_partial_picking_view.xml (line 20), hide_tracking is used by context.
  <field name="move_ids" colspan="4" nolabel="1" mode="tree,form" width="550" height="200" context="{'hide_tracking': hide_tracking}">
  It's used after to hide/show prodlot_id (on line 26):
  <field name="prodlot_id" domain="[('product_id', '=', product_id)]" invisible="context.get('hide_tracking',False)" attrs="{'required':[('tracking','=',True)]}"/>

  GTK client seems to work correctly, while web client has an anormal behavior :
  GTK client hides prodlot_id because used products are not tracked
  but Web client still shows prodlot_id!

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


Follow ups

References