도움말

0

Adding buttons to one2many list(tree) view as one column

Avatar
Eshan Harshana

Hello,

I have an one2many field with a list view and I have added 4 buttons to the list view as in the attached image.

These buttons display according to the state field. The problem that I face is that each button is displayed as a column and as a result of this the view is a bit messy. What I need is

  • Disable buttons according to the state (read only) or

  • Display all buttons in one column.

  • Or another way to make the view nice

How can I achieve any of these options?

Thanks. 




1 코멘트
아바타
작성취소
Avatar
Waleed Mohsen
-

Hi, You can't have more than one button in one column but what you can do is using one button with type object which call a method and in this method you will write your code which do what you want to do depend on state method. To change the label of button based on State of record you will use fields_view_get()