Hello, I am having a hard time closing the open dialogs when I click a button to go to another form. the dialogs open when I click on a one2many line item, then that dialog has a button which opens a form. the problem is when i click the button to open the form, the current dialogs that are open don't close. Can someone tell me how to close an open dialog on a button click?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
Eric,
On the button click, write a method which returns:
return {'type': 'ir.actions.act_window_close'}
Thanks.
Hi Serpent Consulting Services Pvt. Ltd, I trying to print a report from the button and close that wizard. Any idea to achieve this.
So I have to return this to have the pdf : return self.env['report'].get_action(record_to_print, 'account.report_invoice') , but how do I close the wizard after this?
Hi Thanks for your help. It works for me.
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
3
سبتمبر 23
|
2927 | ||
|
2
سبتمبر 23
|
4077 | ||
|
2
ديسمبر 21
|
12017 | ||
|
1
نوفمبر 19
|
5227 | ||
Open the form view into a Wizard
تم الحل
|
|
2
ديسمبر 16
|
14201 |