This question has been flagged
1 Reply
3767 Views

Hi friendz,

       I am trying out buttons in OpenERP 7 in which I need to display the value of the result in a dialog box.

For Example,

      Now I am trying to transfer money from one account to another account, when the transaction is done through clicking the button "Transfer money".  I need to get a dialog box as 

              Transaction Complete 
              Your current balance is 3000

     Help me with my situation.
Avatar
Discard
Best Answer

There is a way that you can create one wizard and show the message when transaction is done.

You need to call that wizard from py after transaction is completed successfully.

Ex:

def my_transaction_done_method(... 
    #Your code
    ...
    return {
        'name': 'Transaction Confirmation',
        'view_type': 'form',
        'view_mode': 'form',
        'res_model': 'your_wizard_object_name',
       'type': 'ir.actions.act_window',
        'nodestroy': True,
        'target': 'new',
    }
Avatar
Discard