subscription cannot historize for document other than Invoice or Sale order

Bug #924327 reported by Simon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 1

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).

Related branches

Changed in openobject-addons:
status: New → Confirmed
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
importance: Undecided → Medium
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Kuldeep Joshi(OpenERP) (kjo-openerp) wrote :

Hello, Thanks For Reporting.
It has been Fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-924327-kjo
revision-id: <email address hidden>
revno: 6470
It will be available in trunk soon.

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Raphael Collet (OpenERP) (rco-openerp) wrote :

merged in trunk
revno: 6470 [merge]
revision-id: <email address hidden>

Changed in openobject-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.