openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #04091
[Bug 907723] Re: [6.0/Trunk] base_action_rule - action scheduler doesn't accept some date fields
** Changed in: openobject-addons
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/907723
Title:
[6.0/Trunk] base_action_rule - action scheduler doesn't accept some
date fields
Status in OpenERP Addons (modules):
Fix Released
Bug description:
Hello,
module base_action_rule won't work on some object.
For example, many objects have a deadline date instead of a deadline
datetime :
└─> egrep -rni "'date_deadline':.*fields" ./addons --include=*.py
./addons/crm_helpdesk/report/crm_helpdesk_report.py:56: 'date_deadline': fields.date('Deadline', select=True),
./addons/crm_helpdesk/crm_helpdesk.py:51: 'date_deadline': fields.date('Deadline'),
./addons/crm/crm_opportunity.py:50: 'date_deadline': fields.date('Expected Closing'),
./addons/crm/crm_meeting.py:69: 'date_deadline': fields.datetime('Deadline', states={'done': [('readonly', True)]}),
./addons/crm_fundraising/crm_fundraising.py:41: 'date_deadline': fields.date('Deadline'),
./addons/event/event.py:318: 'date_deadline': fields.related('event_id','date_end', type='datetime', string="End Date", readonly=True),
./addons/document_ics/document_ics.py:331: 'date_deadline': fields.datetime('Deadline', help="Deadline Date is automatically\
./addons/base_calendar/base_calendar.py:1108: 'date_deadline': fields.datetime('Deadline', states={'done': [('readonly', True)]}),
./addons/base_calendar/wizard/calendar_event_edit_all.py:88: 'date_deadline': fields.datetime('End Date', required=True),
./addons/hr_timesheet_invoice/report/report_analytic.py:38: 'date_deadline': fields.date('Deadline', readonly=True),
./addons/crm_claim/report/crm_claim_report.py:75: 'date_deadline': fields.date('Deadline', readonly=True, select=True),
./addons/crm_claim/crm_claim.py:51: 'date_deadline': fields.date('Deadline'),
./addons/project/report/project_report.py:37: 'date_deadline': fields.date('Deadline', readonly=True),
./addons/project/project.py:406: 'date_deadline': fields.date('Deadline',select=True),
./addons/survey/survey.py:714: 'date_deadline': fields.date("Deadline date"),
./addons/project_issue/project_issue.py:174: 'date_deadline': fields.date('Deadline'),
So trying to trigger on the deadline of a crm_opportunity, a crm_helpdesk, crm_claim, project or a survey will fail.
Attached is a patch to allow the use of those dates.
Regards,
Yannick
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/907723/+subscriptions
References