Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
1468 Lượt xem

We want to adapt the way quotations (sales order) are edited. We want to add a number of fields for our own administration. Problem is that the tree view containing the order lines gets too wide. What are options of stashing away some of these fields (i.e. columns) in pop-ups that open one you click a field? Or is the only option to make that list contain only read-only but clickable rows that, when clicked or a new row is added, opens a complete form showing all the fields for that line? 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Set the One2many field tree to be non-editable [ just remove editable attribute ]  and define a form view for that particular One2many field within the XML.



When you write the code in this manner, clicking on the line of One2many field opens the form view instead of allowing direct editing within the line.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Thanks for your answer Aravind S4. It does clear some things up.

But do I understand correctly there is no 'hybrid' way of editing values both on/in a row and in a form popping up when clicking somewhere on the same row?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 10 23
1950
2
thg 10 22
5604
0
thg 6 22
2228
2
thg 4 20
12961
4
thg 12 19
5323