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

Hello! I am a junior odoo developer (v14).

I am trying to add a button at the header in a tree view, next to the 'Create' button.

I have to add the button from an inherit template, so I think that I will have to use xpath.

The inherited template was already created and I just have to add the button defined in the model, and this is my best approach:

\

However, this does not display the button in the view but at least does not generate en error.

In the template fragment, if I remove the header​ tag, then I can view the button in each record at the right of the table/tree and it does what I expect, but I need to locate the button next to the 'Create' button.

How can I locate my button next to the 'create' button considering that I must to do it from the inherited template?

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مايو 23
2355
1
سبتمبر 21
5018
1
أغسطس 23
3179
2
يناير 23
11436
1
أغسطس 22
3000