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.

1

How to create dummy one2many field.

By
Zahin
on 6/13/13, 11:45 AM 1,746 views

Hello All,

I wanted to create dummy one2many functional fields.

In form view, I want to display one2many data in sale order form, by processing sale order lines.

I want to manage a functional field, like one2many and how processed data with few field names and values ?

How can we do it ?

2

Vasiliy Birukov

--Vasiliy Birukov--
3446
| 6 6 8
Russian Federation
--Vasiliy Birukov--

Help develop and implement any project on base Odoo.

Vasiliy Birukov
On 6/14/13, 3:27 AM

As variant, you can define dummy object (table) with needed field for display in form view.

Then you can define new field in sale order object like:

'view_line_ids': fields.function(_get_lines, relation="YOU DUMMY OBJECT", method=True, type="one2many"),

And in method _get_lines return calculated records in format of DUMMY OBJECT.

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: 6/13/13, 11:45 AM
Seen: 1746 times
Last updated: 3/16/15, 8:10 AM