Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
5940 Prikazi

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 ?

Avatar
Opusti
Best Answer

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.

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
avg. 25
422
4
jul. 25
681
1
dec. 23
3415
0
sep. 23
3299
1
okt. 24
3862