Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2999 Visninger

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..

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
2
sep. 18
5630
1
apr. 18
3106
0
jan. 18
3789
1
mar. 19
4151
0
aug. 18
2201