Firstly, i want to create a form in OpenERP with a button on it. When that button clicked, that button will link to the project.issue form. can I? What must I write on the button?
I'm using developers mode on OpenERP.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Firstly, i want to create a form in OpenERP with a button on it. When that button clicked, that button will link to the project.issue form. can I? What must I write on the button?
I'm using developers mode on OpenERP.
Try this,
Suppose you want to open Sale Order form view from your Object. Do as per following
In your xml file, Make Action as per following
For Example,
<record model="ir.actions.act_window" id="action_your_action_form_test">
<field name="name">My Test</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">your.object</field>
<field name="view_type">form</field>
<field name="view_id" ref="view_object_form_view"/>
</record>
and for button ,
<button name="%(your_module.action_your_action_form_test)d" string="Test" type="action" states="draft" />
Hope it work for you.
Sorry but it doesnt work sir. I changed "%(your_module.action_sale_order_form_test)d" to "%(project.action_sale_order_form_test)d" is it true? But even the button doesnt showed up.
Hi, action_sale_order_form_test is example for your considertion, you must make your object's form view and action, and pass your form view id in your action as shown in above example. and pass this action id in your button. I have tested and it works for me. see my updated answer
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Mar 18
|
3851 | ||
|
0
Jan 18
|
2156 | ||
|
2
Feb 24
|
24019 | ||
|
3
Oct 16
|
53590 | ||
|
3
Sep 15
|
6369 |