c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #05217
[Bug 680122] Re: act_window that works in GTK client not working in web client
I have the same problem with Sales and Purchases links on Partner form.
Also in links on a product form.
** Changed in: openobject-client-web
Status: New => Confirmed
--
act_window that works in GTK client not working in web client
https://bugs.launchpad.net/bugs/680122
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject Web Client: Confirmed
Bug description:
We have the following act_window defined in a custom module for OpenERP 6:
<act_window
id="action_opportunities_from_quotes"
name="Opportunity"
res_model="crm.lead"
src_model="sale.order"
view_mode="form, tree"
domain="[('id','=', opportunity_id)]"
view_type="form" />
We have also modified the sale.order view to include opportunity_id:
<record model="ir.ui.view" id="view_order_form_opportunity_link">
<field name="name">sale.order.form.opportunity_link</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form" />
<field name="arch" type="xml">
<field name="origin" position="after">
<field name="opportunity_id" />
</field>
</field>
</record>
When we click on this link in the GTK client (assuming opportunity_id is set), we get a view containing the Opportunity in question displayed. When we click on this link on the same sale order in the web client, we get a list of all Opportunities, rather than the single Opportunity expected.
References