跳至內容
選單
此問題已被標幟
2 回覆
2796 瀏覽次數

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.


 

頭像
捨棄