Activity log for bug #407786

Date Who What changed Old value New value Message
2009-08-01 19:44:36 Ferdinand bug added bug
2009-08-03 18:20:22 Ferdinand attachment added 2modules.tar http://launchpadlibrarian.net/29832285/2modules.tar
2009-08-09 16:45:50 Albert Cervera i Areny - http://www.NaN-tic.com openobject-client-kde: status New Incomplete
2010-02-22 17:14:15 Borja López Soilán (NeoPolus) summary error related fields in action Related action missing current record context
2010-02-22 17:15:01 Borja López Soilán (NeoPolus) description koo r908 modified stock_move 'partner_id': fields.related('address_id', 'partner_id', type="many2one", relation="res.partner", string="Partner",store=True), works with gtk <act_window domain="[('product_id','=', product_id), ('partner_id', '=', partner_id), ('state' , '!=' ,'cancel' ), ('picking_id.type','=', type )]" id="act_partner_stock_moves_detail" name="Move Details" res_model="stock.move" src_model="chricar.stock.product.partner" view_mode="tree,form" view_type="form"/> kdesvn@cc-gf2:/hd/sdb1/daten/downloads/bzr/kde/openobject-client-kde> koo.py Traceback (most recent call last): File "/usr/lib64/python2.6/site-packages/Koo/Screen/Screen.py", line 216, in triggerAction action.execute( id, ids ) File "/usr/lib64/python2.6/site-packages/Koo/Screen/Action.py", line 72, in execute self.executeRelate( currentId ) File "/usr/lib64/python2.6/site-packages/Koo/Screen/Action.py", line 82, in executeRelate Api.instance.executeAction(self._data, {'id': currentId}) File "./koo.py", line 164, in executeAction Koo.Actions.executeAction( action, data, context ) File "/usr/lib64/python2.6/site-packages/Koo/Actions/Actions.py", line 160, in executeAction domain = Rpc.session.evaluateExpression(action['domain'], a) File "/usr/lib64/python2.6/site-packages/Koo/Rpc/Rpc.py", line 526, in evaluateExpression return eval(expression, context) File "<string>", line 1, in <module> NameError: name 'product_id' is not defined do not understand - product_id is a normal m2o field ins stock_move the source is a view. Related actions (links) do not pass the current record fields values as context for the domain calculation. ----- koo r908 modified stock_move         'partner_id': fields.related('address_id', 'partner_id', type="many2one", relation="res.partner", string="Partner",store=True), works with gtk             <act_window domain="[('product_id','=', product_id),                                  ('partner_id', '=', partner_id),                                  ('state' , '!=' ,'cancel' ),                                  ('picking_id.type','=', type )]"             id="act_partner_stock_moves_detail"             name="Move Details"             res_model="stock.move"             src_model="chricar.stock.product.partner"             view_mode="tree,form"             view_type="form"/> kdesvn@cc-gf2:/hd/sdb1/daten/downloads/bzr/kde/openobject-client-kde> koo.py Traceback (most recent call last):   File "/usr/lib64/python2.6/site-packages/Koo/Screen/Screen.py", line 216, in triggerAction     action.execute( id, ids )   File "/usr/lib64/python2.6/site-packages/Koo/Screen/Action.py", line 72, in execute     self.executeRelate( currentId )   File "/usr/lib64/python2.6/site-packages/Koo/Screen/Action.py", line 82, in executeRelate     Api.instance.executeAction(self._data, {'id': currentId})   File "./koo.py", line 164, in executeAction     Koo.Actions.executeAction( action, data, context )   File "/usr/lib64/python2.6/site-packages/Koo/Actions/Actions.py", line 160, in executeAction     domain = Rpc.session.evaluateExpression(action['domain'], a)   File "/usr/lib64/python2.6/site-packages/Koo/Rpc/Rpc.py", line 526, in evaluateExpression     return eval(expression, context)   File "<string>", line 1, in <module> NameError: name 'product_id' is not defined do not understand - product_id is a normal m2o field ins stock_move the source is a view.
2010-02-22 17:18:54 Borja López Soilán (NeoPolus) attachment added Patch ("bzr diff") based on the revno 1349 of Koo 5.0 http://launchpadlibrarian.net/39547281/koo-action-relate-context-patch.diff
2010-02-23 10:27:01 Albert Cervera i Areny - http://www.NaN-tic.com openobject-client-kde: status Incomplete Fix Released