← 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

if bug 675578 is fixed, surely this is too ?

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/680122

Title:
  act_window that works in GTK client not working in web client

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