跳至內容
選單
此問題已被標幟
1 回覆
2989 瀏覽次數

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
2242
1
2月 22
4038
0
10月 21
1928
1
3月 23
2351
0
4月 22
2392