Odoo Help

0

No close wizard report

By
josemi
on 9/2/16, 3:34 AM 674 views

I have a wizard with a button that has this code:

@api.multi
def btn_print_report(self):
    return {
        'type': 'ir.actions.report.xml',
        'report_name': 'report',
        'nodestroy': True,
    }

But when you print the report closes the wizard, ie disappears and I have to open it again. I would like the wizard will not close.

8

Cybrosys Technologies

--Cybrosys Technologies--
987
| 2 2 3
Calicut, India
--Cybrosys Technologies--

Cybrosys is a well known and highly flourished software development company in India, which provides various services in the IT industry. We are mainly dealing with ERP implementation in both Odoo and .Net, Source Code sale offer for various products and Employee Staffing solutions.

Odoo is the Key service of our company and we have cultivated many potential partners and clients in Europe, Asia, Middle East and Africa within a short span of time. We are really glad to be a part of Odoo and to provide the quality services without any compromise. You can manage the entire project by choosing our experienced and talented developers whenever required. You can feel free to have direct communication with our experts and can assign tasks according to your project plan, the developer will be yours till the end of the work.

Hold your hand with cybrosians to make your Odoo dreams comes true.

Cybrosys Technologies
On 10/31/16, 1:05 AM

Try this method used in 'account_financial_report.py'

def _print_report(self, cr, uid, ids, data, context=None):

        data['form'].update(self.read(cr, uid, ids, ['date_from_cmp', 'debit_credit', 'date_to_cmp', 'fiscalyear_id_cmp',         'period_from_cmp', 'period_to_cmp', 'filter_cmp', 'account_report_id', 'enable_filter', 'label_filter','target_move'],         context=context)[0])

        return self.pool['report'].get_action(cr, uid, [], 'account.report_financial', data=data, context=context)

1

Hilar

--Hilar--
2245
| 5 3 8
Malappuram, India
--Hilar--
  Blog:-
        https://hilarlive.wordpress.com/
  StackOverflow:
        http://stackoverflow.com/users/7561347/burmese-pythis

Hilar
On 1/27/17, 7:13 AM

Hi,

Just remove the param{ 'nodestroy': True,}

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

1 follower(s)

Stats

Asked: 9/2/16, 3:34 AM
Seen: 674 times
Last updated: 1/29/17, 6:19 AM