تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
1460 أدوات العرض

Hello Odooers,

I created a new button in the product form, whenever the button is clicked a pop-up window form will show. How can I create a new pop-up window form in settings or Odoo Studio? Or is there any process of doing it without hard code? I'm using Odoo 17 Enterprise Edition and I haven't integrated Odoo in VSCode or PyCharm IDE. Answers will be appreciated. Thank you so much.

الصورة الرمزية
إهمال
أفضل إجابة

Hi Christian,

In Odoo 17 Enterprise Edition, you can create a new pop-up window form using Odoo Studio without writing any code. Here's how you can do it:

1)first create a new action server for your required model like,


2)Set execute code and add code for return window action like in above image

3) Create new button in your required model and select the server action that you created earlier like,


Now the button will pop up the new window


Hope it helps



الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مايو 17
5573
3
مايو 24
3203
1
أبريل 23
112
3
أكتوبر 24
2795
1
أبريل 24
2308