コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5962 ビュー

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 ?

アバター
破棄
最善の回答

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.

アバター
破棄
関連投稿 返信 ビュー 活動
2
8月 25
448
4
7月 25
700
1
12月 23
3429
0
9月 23
3320
1
10月 24
3866