تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2913 أدوات العرض

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
مايو 22
2175
1
فبراير 22
3944
0
أكتوبر 21
1876
1
مارس 23
2264
0
أبريل 22
2342