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.
|
|