Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4215 Widoki

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.
Awatar
Odrzuć
Najlepsza odpowiedź

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',
    }
Awatar
Odrzuć