我有一個小問題。我目前工作的一個模塊要求我插入一組字段和一個樹形視圖,當數據輸入到表單中時,這些視圖會更新。立即在openerp one2many列表中使用表單和樹視圖
<field name="lines" widget="one2many_list" colspan="4" nolabel="1">
<tree>
<field name="product_id"/>
<field name="product_qty"/>
</tree>
<form>
<field name="product_id"/>
<field name="product_qty"/>
</form>
</field>
以上是從我的觀點片段,是有可能導致上述和樹視圖的形式查看在在同一個頁面。
對於實例
==============
表單域
樹視圖
這樣無需點擊新記錄圖標我可以將記錄添加到樹視圖並從上面顯示的表單中保存它們。
請指教。
謝謝!
前往addons-> product-> product_view。xml,然後在'product_supplierinfo_form_view'窗體視圖中有供應商價目表的樹視圖,在該樹視圖中可以找到'editable =「bottom」'。 –