跳至内容
菜单
此问题已终结
1 回复
2863 查看

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
2114
1
2月 22
3909
0
10月 21
1825
1
3月 23
2220
0
4月 22
2279