openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #13074
[Bug 628767] Re: Opening form view from act_window broken
I would like to understand why this doesn't qualify as a bug. To me it's
at least a severe limitation. As far as I know, it's just impossible to
open a new tab in the GTK client which would be in "form" mode and which
would be on a specific record ID using act_window.
The only workaround I've found is for the web client, and is quite ugly:
http://www.openerp.com/forum/viewtopic.php?f=11&t=21250&view=previous
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/628767
Title:
Opening form view from act_window broken
Status in OpenERP Server:
Invalid
Bug description:
With the XML below, I get a list view containing a single opportunity
when I click on the 'Opportunity' button. If I click on the 'Form'
button in the GTK client, then I get the form view for that single
opportunity. All is well.
If, however, I change the sequence fields so that the form view comes
before the list view and then click the 'Opportunity' button, I get an
empty Opportunity form. If I click on the List button in the GTK
client, I get the correct list, as above. I can then click the Form
button, as above, and get to the expected form view.
I would expect to be able to load the form view straight off, without
the indirection via the list view.
<?xml version="1.0"?>
<openerp>
<data>
<act_window
id="action_opportunities_from_quotes"
name="Opportunity"
res_model="crm.lead"
src_model="sale.order"
view_mode="form"
domain="[('id','=', opportunity_id)]"
view_type="form" />
<record id="action_opportunities_from_quotes_view1" model="ir.actions.act_window.view">
<field name="act_window_id" ref="action_opportunities_from_quotes" />
<field eval="0" name="multi" />
<field eval=""""form"""" name="view_mode" />
<field name="view_id" ref="crm.crm_case_form_view_oppor" />
<field eval="1" name="sequence" />
</record>
<record id="action_opportunities_from_quotes_view2" model="ir.actions.act_window.view">
<field name="act_window_id" ref="action_opportunities_from_quotes" />
<field eval="0" name="multi" />
<field eval=""""tree"""" name="view_mode" />
<field name="view_id" ref="crm.crm_case_tree_view_oppor" />
<field eval="0" name="sequence" />
</record>
</data>
</openerp>
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/628767/+subscriptions