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

I can not understand when and how precompute=True can be used in computed fields. What difference does it make?


Thank You!

아바타
취소
베스트 답변

Hi Karan BK,

Odoo16: Add precompute=True option in your Computed fields to compute value before Record Create, UpTo 15.0 version Computed field value was computed after Record Create.

If you need more information then:

  • whether the field should be computed before record insertion in database. Should be used to specify manually some fields as precompute=True when the field can be computed before record insertion.
  • Inside odoo documatation ctrl+F and search precompute=True .
  • https://www.odoo.com/documentation/16.0


Thank you


아바타
취소
작성자

Hello Nikhil,
I have gone through the documentation and I know by setting precompute=True, computed fields will be computed before record create. But what I wanted to know is what difference does it make when computation is done before or after record create. When we should set precompute=True on a computed field and what is the purpose of using it.

작성자

This commit is helpful. Thanks Nikhil.

관련 게시물 답글 화면 활동
3
4월 24
2439
0
1월 24
1817
2
6월 23
4654
1
5월 23
3513
3
8월 25
2346