I have a small question. A module which I am working at the moment requires that I insert a set of fields and a tree view which gets updated when data is entered to the form.
<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>
The above is a snippet from my view, is it possible to render the form view of the above and the tree view at one in the same page.
For an instance
==============
Form fields
Tree View
So that without having to click the new record icon i can add records to the tree view and save them from the form which is displayed above.
Please advise.
Thanks !
I think you’re asking if there’s a way to add or edit records in a tree view without having to pop open a window for each record.
Some views do have tree views that can be edited in place. One example that I can think of is the supplier price list on the Product screen. Another is Entries Encoding by Move in the Accounting section. If you look at the source code, you can probably figure out how they do it.