← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Hello Rikafat,

Do you have done an "uncommit" on your branch ?

On our OPW you sent me your branch (lp:~openerp-dev/openobject-
addons/6.0-bug-793468-rha) with revision 4689 and this revision was
there. But it disappeared.

The revision 4689 was the file attached, so the fix is not the same as
the Sébastien's one !

What's the good patch to use please ?


** Patch added: "4689 revision"
   https://bugs.launchpad.net/openobject-addons/+bug/793468/+attachment/2288177/+files/793468_rev_4689.patch

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