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

Hi,

I have two fields which names are month and year, as you see;

class Hr_moduleSsReports(models.Model):
    _name = 'hr_module.ss.reports'  
    
     month = fields.Selection([(1, 'Jan'), (2, 'Feb'), (3, 'Mar'), (4, 'Apr'),
                          (5, 'May'), (6, 'Jun'), (7, 'Jul'), (8, 'Aug'),
                          (9, 'Sep'), (10, 'Doc'), (11, 'Nov'), (12, 'Dec') ],
                          string='Ay',default=datetime.now().month,required="True")
    year = fields.Selection([(num, str(num)) for num in range(1990, (datetime.now().year)+1 )],
                            string='Year', default=datetime.now().year)

and these fields using for selection period of report, and i want to show this month and year in my report;

this is the field of view in report;

report_date = fields.Char('hr_module.ss.reports.month')

but i could not make to show, i am not sure how to do it, i searched but i have not got anything.

what should i write instead 'hr_module.ss.reports.month'

Thank you..

아바타
취소
관련 게시물 답글 화면 활동
2
9월 18
5838
1
4월 18
3317
0
1월 18
3963
1
3월 19
4308
0
8월 18
2372