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

In Odoo 14, how can I make a field dynamically repeat what is typed in another field.
Having field A and field B, when typing in field A,
automatically in field B the information is dynamically repeated.



アバター
破棄
最善の回答

Hi,

You can achieve this using onchange function, or by making a compute field or by a related field.

Using  a relate d field will be easier here.

Sample:

field_1 = fields.Char(string="Test")

field_2 = fields.Char(string="Test 2", related='field_1')


For Reference

  1. How To Add Related Field In Odoo
  2. How To Add Onchange Function in Odoo
  3. How To Add Compute Field In Odoo

Thanks

アバター
破棄
著作者

Thanks! but , We need it to be dynamic, character by character, similar to this JS example "https://codepen.io/burntcaramel/pen/YGJXAb"

関連投稿 返信 ビュー 活動
0
5月 22
2197
1
2月 22
3976
0
10月 21
1881
1
3月 23
2294
0
4月 22
2370