Skip to Content
Menu
This question has been flagged
2433 Views

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
Discard
Related Posts Replies Views Activity
2
Sep 18
4787
1
Apr 18
2473
0
Jan 18
3089
1
Mar 19
3441
0
Aug 18
1572