c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #05216
[Bug 680122] [NEW] act_window that works in GTK client not working in web client
Public bug reported:
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.
** Affects: openobject-client-web
Importance: Undecided
Status: New
--
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: New
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.
Follow ups
References