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

Hi,

I would like to know if there is a way and how to proceed to programmatically know what is the current database name from within module scripts.

Thanks.

아바타
취소
베스트 답변

Try this code,

    `dbName = self._cr.dbname`

아바타
취소
베스트 답변

Hi please try this:-

>> cursor_postgres.execute("select current_database()")

아바타
취소
관련 게시물 답글 화면 활동
4
4월 24
2375
2
2월 23
6390
Database Odoo 해결 완료
1
3월 18
3590
1
3월 17
3499
1
8월 16
5137