Odoo Help

Welcome!

This community 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.

1

dialog box with value from py file

By
Atchuthan
on 6/27/13, 2:59 AM 1,325 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)

--Sudhir Arya (SA)--
10150
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow

LinkedIn

Blog

Stackoverflow

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

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