Odoo Help

1

dialog box with value from py file

By
Atchuthan
on 6/27/13, 2:59 AM 1,600 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.
2
Sudhir Arya (SA)
On 6/29/13, 5:14 PM

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',
    }

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)

Stats

Asked: 6/27/13, 2:59 AM
Seen: 1600 times
Last updated: 3/16/15, 8:10 AM