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.

2

is it possible to display a one2many field in a grouped by tree view within a form?

By
Alexandre Fayolle - Camptocamp
on 8/25/13, 2:19 PM 3,724 views

Title says it all: I have 2 models, foo.bar and foo.bar.line with a one2many relation. foo.bar.line has a text field on which it is useful to perform a "group by" : how can I show the foo.bar.lines within the foo.bar form view as a tree view with a group_by?

I've tried:

            <field name="line_ids"
                   colspan='4' context="{'group_by': 'group_field }">
              <tree....> </tree>
          </field>

with little success.

3

Ray Carnes

--Ray Carnes--
15717
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0 and Odoo 8.0, 9.0 (Since 2012)

Completed Functional and Technical Training.

Major Skills:

  • Needs Discovery and Requirements Analysis;

  • Function and Technical Specifications;

  • Project Planning;

  • Prototyping and Proof of concepts;

  • Data migration;

  • Configuration & Customization (UI and modules);

  • Integration - data, business logic and service levels;

  • Training and Knowledge transfer;

  • Go Live support;

  • Help desk;

  • Version Migration.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

Ray Carnes
On 8/25/13, 5:05 PM

Although this was possible at 6.1, I have not seen a way to do it at 7.0. http://www.zbeanztech.com/blog/filtering-one2many-fields-openerp

I converted your comment to answer and accepted it.

Camptocamp France SAS, Alexandre Fayolle - Camptocamp
on 8/29/13, 7:56 AM

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

2 follower(s)

Stats

Asked: 8/25/13, 2:19 PM
Seen: 3724 times
Last updated: 3/16/15, 8:10 AM