openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #06176
[Bug 924327] Re: subscription cannot historize for document other than Invoice or Sale order
merged in trunk
revno: 6470 [merge]
revision-id: rco@xxxxxxxxxxx-20120202160443-plj4j2dnbxp361p6
** 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/924327
Title:
subscription cannot historize for document other than Invoice or Sale
order
Status in OpenERP Addons (modules):
Fix Released
Bug description:
When a subscription for a document other than "Invoice" or "Sale Order" runs, the cron job fails on trying
to create the subscription history.
Steps to reproduce:
* clean trunk code + database with project and subscription modules installed
* under tools / configuration / recurring events / document types create document type "Task" (project.task)
* under tools / Recurring Events / Subscriptions create subscription for a task and press "process"
Wait for the cron job to run , you will see following error in the
console:
_('The value "%s" for the field "%s.%s" is not in the selection') % (value, self._table, field))
except_orm: ('ValidateError', u'The value "project.task,64" for the field "subscription_subscription_history.document_id" is not in the selection')
Possible fix:
in the class subscription_subscription_history (in
subscription/subscription.py line 151) change the selection attribute
of the document_id field to _get_document_types (as in
subscription.subscription field doc_source).
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/924327/+subscriptions
References