Odoo Help

1

3
9 Answers
17
Avatar

Grover Hernando Menacho Quisbert

--Grover Hernando Menacho Quisbert--
WebVision Enterprise Systems
https://www.linkedin.com/in/hmen89/
2935
| 7 8 10
La Paz, 玻利维亚
--Grover Hernando Menacho Quisbert--

Odoo Developer

Grover Hernando Menacho Quisbert
2013/10/7 上午10:46

On your search view you have something like this:

<filter name="group_employee_id" string="Category" icon="terp-partner" context="{'group_by':'employee_id'}"/>

So, on your action you have to send this by context:

<field name="context">{'search_default_group_employee_id': 1}</field>
1 Comment
MONK Software, Leonardo Donelli
2014/9/10 上午11:54

I tried with just {'group_by': 'employee_id'} in the action context and it works.

3
Ratmil Torres
2015/5/6 上午11:14

What if this treeview is inside a form? Not called from an action.

1 Comment
Limitless Virtual Enterprise, Andre de Kock
2015/7/14 上午3:02

Good question. I would also like to know.

1
srikanth
2018/10/2 上午10:46
<tree string="" default_order="field_name">
<field name=""/>
<field name=""/>
</tree>
1
Avatar

Axel Mendoza

--Axel Mendoza--
13613
| 8 8 10
Camaguey, 古巴
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full-time employee trying to understand what to do and how

Reach me at aekroft@gmail.com

Axel Mendoza
2015/8/7 下午1:09

I do this in v7 it require an extension of the widget one2many or many2many

0
Bulgantamir
2017/8/16 上午5:17
<filter name="group_employee_id" string="Category" icon="terp-partner" context="{'group_by':'employee_id'}"/>

So, on your action you have to send this by context:

<field name="context">{'search_default_group_employee_id': 1}</field>
0
Badache Zoubir
2016/4/28 上午5:30

<record id=".............." model="ir.actions.act_window" >

<field name="name">.............</field>

<field name="res_model">.................</field>

<field name="view_type">form</field>

<field name="context">{'group_by':'employee_id'}</field>

<field name="view_mode">tree</field>

<field name="domain">[('active', '=', True)]</field>

</record>

0
Noel Jesús Rivero
2016/4/8 上午10:04

Nice solution

Ask a Question
Writer
Keep Informed
1 follower(s)
About This Community

This platform 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.

Register
Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now