[IMP] project,_timesheet_holidays: improve source terms
closes odoo/odoo#35227 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
committed by
Martin Trigaux
parent
f247475cdd
commit
faec20239c
@@ -67,12 +67,12 @@ kanbanExamplesRegistry.add('project', {
|
||||
}, {
|
||||
name: _t('Research Project'),
|
||||
columns: [_t('Brainstorm'), _t('Research'), _t('Draft'), _t('Final Document')],
|
||||
description: escFormat(_t('Handle your idea gahtering within Tasks of your new Project and discuss them in the chatter of the tasks. Use the %s and %s to signalize what is the current status of your Idea'), greenBullet, redBullet),
|
||||
description: escFormat(_t('Handle your idea gathering within Tasks of your new Project and discuss them in the chatter of the tasks. Use the %s and %s to signalize what is the current status of your Idea'), greenBullet, redBullet),
|
||||
bullets: [greenBullet, redBullet],
|
||||
}, {
|
||||
name: _t('Website Redesign'),
|
||||
columns: [_t('Page Ideas'), _t('Copywriting'), _t('Design'), _t('Live')],
|
||||
description: escFormat(_t('Handle your idea gahtering within Tasks of your new Project and discuss them in the chatter of the tasks. Use the %s and %s to signalize what is the current status of your Idea'), greenBullet, redBullet),
|
||||
description: escFormat(_t('Handle your idea gathering within Tasks of your new Project and discuss them in the chatter of the tasks. Use the %s and %s to signalize what is the current status of your Idea'), greenBullet, redBullet),
|
||||
}, {
|
||||
name: _t('T-shirt Printing'),
|
||||
columns: [_t('New Orders'), _t('Logo Design'), _t('To Print'), _t('Done')],
|
||||
|
||||
@@ -45,9 +45,9 @@ class HolidaysType(models.Model):
|
||||
for holiday_status in self:
|
||||
if holiday_status.timesheet_generate:
|
||||
if not holiday_status.timesheet_project_id or not holiday_status.timesheet_task_id:
|
||||
raise ValidationError(_('Both the internal project and task are required to\
|
||||
generate timesheet for the time of. If you don\'t want timesheet, you must let\
|
||||
empty internal project and task.'))
|
||||
raise ValidationError(_("Both the internal project and task are required to "
|
||||
"generate a timesheet for the time off. If you don't want a timesheet, you should "
|
||||
"leave the internal project and task empty."))
|
||||
|
||||
|
||||
class Holidays(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user