콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
2798 화면

Hy,

Many people are asking me to "drop" the sheet part of some specific views. From now the only way to do this is to override the entire view and delete the sheet node.

It would be nice if we could implement something like that  :

  • Add a new attribute in the sheet tag that will be called "active"
  • use this attribute to manage the beahviour of the view, if it's active it'll work like now and if active=False then the behaviour will be ignored (A kind of removal)
  • Add a preference value in the user profile and in the context so that the info would be passed in actions and views.

Hope it could be considered as a good feature


 

아바타
취소

I do agree with Florent. The concept of sheet is nice when you work an document that will be printed after edition like invoices, quotes,.... On some other screens it is just a lost of space in the view.

베스트 답변

The best approach (IMO) is to customize the associated style sheets.

For instance, this is the default one on v8:

.openerp .oe_form_sheet_width {

min-width: 650px;

max-width: 860px;

margin: 0 auto;

}

By just removing the max-width style, your sheet will become 100% wide.

Of course, you'll probably want to keep some margin, but again, it's just a matter of CSS.

아바타
취소
작성자

Davide it's a great point. Yet it will be for all users. That's why I was proposing a feature for this. maybe instead of active an inactive, a ratio could be set in the user profile... and combine your proposal. Regards

작성자 베스트 답변

Davide,

Your proposal works perfectly on V7. I have to dig for the v8.


 

아바타
취소