Odoo Help

0

0
4 Answers
1

Hello, Everyone, you can add button in the one2many tree view.

this button will not be disabled

add button in sale orders line. 


<xpath expr="//field[@name='product_id']" position="after">
<button name="%(action_search_hotel_wizard)d" string="Search" type="action" icon="terp-gtk-jump-to-ltr" />
</xpath>

I think this will help you to add button in the one2many tree view without disabling button.

1
Avatar
--deep--

Techno-Functional Associate with 7+ years of experience in Odoo (formerly known as OpenERP).

deep
21-07-14 05:49

Hi..

In Tree View, if you are defining a button, then define it with an icon.. because button will not be shown instead icon for the same will be shown in the Tree View...

So In your case,

<button name="return_action_to_open" icon="gtk-ok" ... />

Note: numerous icons are available, same can be used while defining buton..

0
Avatar

Bole

--Bole--

2547
| 6 4 8
Zagreb | Karlovac, Kroatië
--Bole--

there is only 10 kind of people the ones that understand binary ... and others

Bole
21-07-14 03:29

I would try to define a new security group (or use existing one) and add to button definition groups=selected.group ...
 

0
dirtyHandsPHP
21-07-14 02:44

I am facing the same problem?? Any solution?

Stel een vraag
Writer
Keep Informed
0 volger(s)
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 eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now