Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

3

Can users switch One2Many editable tree to form?

By
Mohammad Alhashash
on 2/21/13, 7:20 AM 3,739 views

In pre-V7, it was possible for users to switch one2many fields views using small icons on top like those of the main view. I do not know how to get this functionality in v7.

I noted that many views include both <tree> and <form> in the <field> tag. Sale order line uses either tree or form view based in group, but in most other object, the form view is not used at all. Is it possible to allow users to edit using the form view through the web interface, possibly with an action button.

2

saad

--saad--
1008
| 5 4 8
Casablanca, Morocco
--saad--
saad
On 2/25/13, 11:05 AM

Update:

As per the comments below, it is not currently possible in OpenERP v7.0.


This feature is possible by adding mode attribute in one2many fields.

<field name="order_line" mode="tree,form">

or

<field name="child_ids" mode="kanban,tree">

This does not work in OpenERP 7.0; I got the Javascript exception Uncaught Error: View type 'form' is not supported in One2Many

Mohammad Alhashash
on 3/4/13, 6:18 AM

You should define the form tag for the One2many field.

saad
on 3/4/13, 6:49 AM

It is defined. I'm trying to modify the account.bank.statement form view which has form tag defined for the line_ids field. I think o2m forms are no longer supported in OpenERP 7.0. I did not seen any o2m forms in official addons (yet).

Mohammad Alhashash
on 3/4/13, 8:10 AM

you are right, it is possible only to switch between tree and kanban views.

saad
on 3/4/13, 10:47 AM

Thanks a lot for your help.

Mohammad Alhashash
on 3/4/13, 6:33 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 2/21/13, 7:20 AM
Seen: 3739 times
Last updated: 3/16/15, 8:10 AM