← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 793468] Re: error when mrp and module sale are installed

 

Hello Sébastien BEAU - http://www.akretion.com,

Thank you very much for reporting this problem.

It is now fixed in,
lp:~openerp-dev/openobject-addons/6.0-bug-793468-rha
Revision ID: rha@xxxxxxxxxxx-20110704052929-0e0yueelbhvh123e 
Revision no: 4689

Regards,
Rifakat


** Changed in: openobject-addons
       Status: In Progress => Fix Committed

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

Title:
  error when mrp and module sale are installed

Status in OpenERP Modules (addons):
  Fix Committed

Bug description:
  Hi
  I found a very strange bug when the module mrp and sale are installed on the same database.
  As my customer have an OPW (M10120866-mzcusrpk), I also send a mail to the support with a link on this bug.
  To reproduce it:
  add a print function in sale.py just after the fuction action_invoice_create

       def action_invoice_create(self, cr, uid, ids, grouped=False, states=['confirmed', 'done', 'exception'], date_inv = False, context=None):
  +        print "create invoice"
           res = False
           invoices = {}
           invoice_ids = []

  Now start OpenERP and install the module mrp and sale (with demo data)

  Go in sale and select the order SO001 of agrolait.
  Change the invoice policy to "Invoice On Order After Delivery"
  And validate the order and the picking.
  => look in the log, the function action_create_invoice was call one time. Everything work

  Go back in sale order and duplicate the order SO001
  Change the invoice policy to "Shipping & Manual Invoice"
  And validate the order and the picking
  => everything is ok

  Go back in sale order and duplicate the order SO001
  Change the invoice policy to "Invoice On Order After Delivery"
  And validate the order and the picking
  => look in the log the function action_create_invoice was call two time.

  As we inherit this function in base_sale_multichannel (a required module for magentoerpconnect).
  It's a big problem for our customer.

  For information I use the last code of the addons and the server. This
  bug is very strange but 100% reproductible.

  Thanks

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


References