据我所知,<group>
6.x 和 7.0 版本之间的 xml 标签发生了根本性的变化。有人可以解释或指向我可以阅读此标签在 OpenERP 7.0 中的行为方式的资源吗?
问问题
1240 次
1 回答
1
虽然我隐约记得在 Launchpad 上读过一些东西,但我还没有看到明确的文档,但我现在找不到。开发人员文档有这个:
从技术上讲,表单 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/n)。使用一个元素来生成一列字段。
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 属性的组。最好的办法可能是找到一种与您想要达到的目标相匹配的表格,然后看看它是如何做到的。
还有新的、烦人的工作表属性,我只是不明白这个(我的意思是我不明白为什么,我知道它的作用)。
于 2013-10-23T03:39:03.783 回答