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

Hello , I have done research on this and did not find anything relevant , my requirement is i want my custom date in the create_date field in svl , Can somebody please help me out with this .


아바타
취소
베스트 답변

hello

maybe a little bit late...

create_date are protected field form odoo core therefore the only way to achieve this would be to modify the field by sql after having created it.

exemple :

env.cr.execute("UPDATE stock_valuation_layer set create_date = '%s' WHERE id=%s" % (record.date, svl_id.id))
아바타
취소