← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 811080] Re: sale margin breaks invoice type

 

Hello,

I searched this code in the version 6.0.3 and saw that the method has been changed to correct that:
    def action_invoice_create(self, cr, uid, ids, journal_id=False,
            group=False, type='out_invoice', context=None):
        # need to carify with new requirement
        invoice_ids = []            
        if context is None:
            context = {}
        picking_obj = self.pool.get('stock.picking')
        res = super(stock_picking, self).action_invoice_create(cr, uid, ids, journal_id=journal_id,group=group, type=type, context=context)        
        invoice_ids = res.values()
        picking_obj.write(cr, uid, ids, {'invoice_ids': [[6, 0, invoice_ids]]})
        return res

You can see that the super method call has been modified to have the
values given to this method (type=type). This bug is also resolved in
6.0.3.

** Changed in: openobject-addons
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/811080

Title:
  sale margin breaks invoice type

Status in OpenERP Addons (modules):
  Fix Released

Bug description:
  Sale margin has overwritten action_invoice_create of stock.picking and
  sends hard coded 'out_invoice' as invoice type.

  This breaks invoice creation from inward picking.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/811080/+subscriptions


References