2013-10-21 26 views
0

據我所知,版本6.x和7.0之間xml標籤<group>發生了根本性的變化。有人可以解釋或指向一個資源,我可以閱讀這個標籤在OpenERP 7.0中的行爲嗎?OpenERP 7.0 xml標籤<group>解釋

回答

1

我還沒有看到一個權威的文檔,雖然我依稀記得在Launchpad上讀取的東西,但我現在找不到它。 developer docs有:

從技術上來說,表格版本7.0的版面與前版本 版本不同。不再有默認的「網格」佈局;而不是 佈局更多基於HTML和CSS。下列約定 現在用:

The elements <form> and <page> no longer define groups; the elements inside are laid out inline. One should use explicit <div> or 

創建塊。

By default, the element <group> now defines two columns inside, unless an attribute col=」n」 is used. The columns have the same width 

(組的寬度的1/11)。使用一個元素來生成一個 字段的列。

The element <separator string=」XXX」/> on top of a group can be replaced putting string=」XXX」 inside the <group> element. 

The element <field name=」XXX」/> does not produce a label, except when they are directly below a <group> element. Use <label for=」XXX」/> 

以產生該字段的標籤。

我發現有時候我需要在表單中定義一個頂級組,然後使用常規col和colspan屬性中的組。可能最好的辦法是找到一個與你想要實現的內容相匹配的表單,並看看它是如何實現的。

還有一個新的惱人的紙張屬性,我只是不明白這一個(我的意思是我不明白爲什麼,我知道它是什麼)。

+0

Upvote for good reference point。順便說一句,我相信他們介紹了工作表,因爲如果您在表單視圖中打印對象,它看起來就像屏幕上的表單。但是如果你有全高清顯示器,這有點讓人討厭,因爲你有很多空閒空間。 – and3p