|
@ -26,10 +26,10 @@ class DateRangeGenerator(models.TransientModel): |
|
|
comodel_name='res.company', string='Company', |
|
|
comodel_name='res.company', string='Company', |
|
|
default=_default_company) |
|
|
default=_default_company) |
|
|
unit_of_time = fields.Selection([ |
|
|
unit_of_time = fields.Selection([ |
|
|
(YEARLY, 'years'), |
|
|
|
|
|
(MONTHLY, 'months'), |
|
|
|
|
|
(WEEKLY, 'weeks'), |
|
|
|
|
|
(DAILY, 'days')], required=True) |
|
|
|
|
|
|
|
|
('YEARLY', 'years'), |
|
|
|
|
|
('MONTHLY', 'months'), |
|
|
|
|
|
('WEEKLY', 'weeks'), |
|
|
|
|
|
('DAILY', 'days')], required=True) |
|
|
duration_count = fields.Integer('Duration', required=True) |
|
|
duration_count = fields.Integer('Duration', required=True) |
|
|
count = fields.Integer( |
|
|
count = fields.Integer( |
|
|
string="Number of ranges to generate", required=True) |
|
|
string="Number of ranges to generate", required=True) |
|
|