hide_tracking doesn't working correctly, problem faced on webclient

Bug #1003999 reported by Romain Deheele - Camptocamp
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Medium
OpenERP R&D Addons Team 2

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!

Related branches

description: updated
description: updated
Amit Parik (amit-parik)
summary: - behaviors difference between GTK and web clients
+ hide_tracking doesn'r working correctly, problem faced on webclient
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Medium
status: New → Confirmed
summary: - hide_tracking doesn'r working correctly, problem faced on webclient
+ hide_tracking doesn't working correctly, problem faced on webclient
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Saurang Suthar(OpenERP) (ssu-openerp) wrote :

Hello moniarh,

I have fixed the problem in lp:~openerp-dev/openobject-addons/trunk-bug-1003999-ssu branch, It will be merged soon in lp:openobject-addons.

Revision No: 6917
Revision ID: <email address hidden>

Thanks.
Saurang Suthar

Changed in openobject-addons:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.