Hi,
Thanks for your comment.
The thing is we are currently working with the trunk version for a 6.1 project,
not with the 6.0.
** Changed in: openobject-client-web
Status: Fix Released => New
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/890603
Title:
act_window context problem
Status in OpenERP Web Client:
New
Bug description:
The 3 different act_window syntax will create the same error in the web
client whereas it works fine the the gtk.
partner_id field is in the crm_claim.py but it seems it is not sent in the
context
===== Case 1 =============
OpenERP WebClient Error
Client Traceback (most recent call last):
File "/opt/openerp/prod/web/addons/web/common/http.py", line 154, in
dispatch
response["result"] = method(controller, self, **self.params)
File "/opt/openerp/prod/web/addons/web/controllers/main.py", line 1092, in
load
value = clean_action(req, action[0], do_not_eval)
File "/opt/openerp/prod/web/addons/web/controllers/main.py", line 453, in
clean_action
action['context'] = eval( action['context'], eval_ctx ) or {}
File "<string>", line 1, in <module>
NameError: name 'partner_id' is not defined
<act_window
context="{'search_default_partner_id': [partner_id]}"
id="act_crm_claim_rma_sale_orders"
name="Partner sale orders"
res_model="sale.order"
src_model="crm.claim"/>
===== Case 2 =============
Client Traceback (most recent call last):
File "/opt/openerp/prod/web/addons/web/common/http.py", line 154, in
dispatch
response["result"] = method(controller, self, **self.params)
File "/opt/openerp/prod/web/addons/web/controllers/main.py", line 1092, in
load
value = clean_action(req, action[0], do_not_eval)
File "/opt/openerp/prod/web/addons/web/controllers/main.py", line 453, in
clean_action
action['context'] = eval( action['context'], eval_ctx ) or {}
File "<string>", line 1, in <module>
NameError: name 'partner_id' is not defined
<act_window
context="{'search_default_partner_id': [partner_id],}"
domain="[('type', '=', 'out_refund')]"
id="act_crm_claim_rma_refunds_out"
name="Partner refunds out"
res_model="account.invoice"
src_model="crm.claim"/>
===== Case 3 =============
Client Traceback (most recent call last):
File "/opt/openerp/prod/web/addons/web/common/http.py", line 154, in
dispatch
response["result"] = method(controller, self, **self.params)
File "/opt/openerp/prod/web/addons/web/controllers/main.py", line 1092, in
load
value = clean_action(req, action[0], do_not_eval)
File "/opt/openerp/prod/web/addons/web/controllers/main.py", line 456, in
clean_action
action['domain'] = eval( action['domain'], eval_ctx ) or []
File "<string>", line 1, in <module>
NameError: name 'partner_id' is not defined
<act_window
domain="[('type', '=', 'in'),('partner_id', 'in', [partner_id])]"
id="act_crm_claim_rma_picking_in"
name="Partner picking IN"
res_model="stock.picking"
src_model="crm.claim"/>
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client-web/+bug/890603/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help : https://help.launchpad.net/ListHelp