mrp_byproduct does not accept or preserve context on action_confirm

Bug #1176133 reported by Brendan Clune (Logic Supply)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
OpenERP Publisher's Warranty Team

Bug Description

The mrp_byproduct module overrides the action_confirm method on the mrp.production object. However, the overriding method has a signature of

  def action_confirm(self, cr, uid, ids):

while the original method defined in the mrp module has a signature of

  def action_confirm(self, cr, uid, ids, context=None):

This causes issues when further extending the mrp.production object while mrp_byproduct is installed. The attached patch adds the context variable to both the function definition and the super call inside of action_confirm().

Tags: maintenance
Revision history for this message
Brendan Clune (Logic Supply) (brendan-clune) wrote :
Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Revision history for this message
Brendan Clune (Logic Supply) (brendan-clune) wrote :
Changed in openobject-addons:
status: New → Fix Released
Changed in openobject-addons:
milestone: none → 7.0
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.