← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 680122] Re: act_window that works in GTK client not working in web client

 

*** This bug is a duplicate of bug 675578 ***
    https://bugs.launchpad.net/bugs/675578

** This bug has been marked a duplicate of bug 675578
   [v6 trunk] domain not working in Customer
 * You can subscribe to bug 675578 by following this link: https://bugs.launchpad.net/openobject-client-web/+bug/675578/+subscribe

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