It is currently Sat Feb 11, 2012 12:16 pm

All times are UTC + 2 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Memory wizard button cant able to redirect to same Form
PostPosted: Mon Feb 15, 2010 2:14 pm 
Offline

Joined: Thu Feb 11, 2010 6:30 am
Posts: 3
Hi All,

I have problem in memory Wizard in and i put the two button on it as shown bellow


[code] <record id="view_payment_pay_wizard_form" model="ir.ui.view">
<field name="name">payment_pay.wizard.form</field>
<field name="model">payment.wizard</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Make Payment">
<field name="pmt_amount"/>
<field name="past_due" />
<field name="pay_date" colspan="1" />
<field name="journal_id"/>
<separator colspan="4" string="" />
<group colspan="4">
<button string="Cancel" special="cancel"
icon="gtk-cancel" />
<button string="Make Payment" name="gotodb"
type="object" icon="gtk-ok" />
</group>
</form>
</field>
</record>

<record id="action_make_payment_wiz" model="ir.actions.act_window">
<field name="name">Make Payment</field>
<field name="res_model">payment.wizard</field>
<field name="type">ir.actions.act_window</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
[/code]
-------------------------------------------------------------------------------------------------
and i have called this action on one button on the another class view

--------------------------------------------------------------------------------------------------
[code] <button name="%(action_make_payment_wiz)d"
string="Make Payment" type="action" icon="gtk-execute" /> [/code]
---------------------------------------------------------------------------------------------------
* I m calling Wizard on Clicking on the button on main form then it is opening in the Same Tab in Brower ,but is should be open in new tab ,How to achive that..??

* The Problem is When i m clicking on the button on Wizard "Make Payment" it is not redirecting to me the same parent form instead it is staying in the same wizard form, what i m trying to redirect to the parent form .

* now same problem with the Cancel button when i m clicking it is redirecting to the direct Menu Page that should not be happen,
i m unable to handle the action ,the Wizard should be open in new form and after action complete is should go back to parent Form

I hope the Question is clear....

Please suggest me any solution......

Thnaking in Advance
Shashi[code][/code]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP