Hello Daniel,
You should try view_mode="form,tree" or view_mode="tree,form" in order
to achieve your aim.
Let me know if it still doesn't work.
Thank you.
** Changed in: openobject-server
Status: New => Invalid
--
Opening form view from act_window broken
https://bugs.launchpad.net/bugs/628767
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject 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>
_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help : https://help.launchpad.net/ListHelp