콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3181 화면

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
2426
1
2월 22
4235
0
10월 21
2101
1
3월 23
2532
0
4월 22
2604