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

Hi ALL,

In V12. I have a form_view, in form view have a field one2many display over tree and in this tree has button type object.

when i click to button in tree view then function be called and formview auto reload (?!). please help me turn off it.

in odoo V9.0. I set option mode { 'reload_on_button': False} this is OK, but odoo 12 it is not work.

Thanks all !

الصورة الرمزية
إهمال

Hi,

try to set option mode { 'reload_on_button': false}

false and not False

الكاتب

Thanks for your support! i tried but not work ( use False and false in options mode ).

أفضل إجابة

Hi,

try to add the attribute 'special' to your button:

<button name="button_name" type="object" string="button_title" special="string"/>
الصورة الرمزية
إهمال
أفضل إجابة

@Odoo Tools: Could you help us this case or someone can help us? 

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

@Odoo tools Thanks for your support, i tried but not work.

TypeError: def is undefined
الصورة الرمزية
إهمال