c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #25869
[Bug 793468] Re: error when mrp and module sale are installed
** Changed in: openobject-addons
Assignee: (unassigned) => OpenERP Publisher's Warranty Team (openerp-opw)
** Changed in: openobject-addons
Importance: Undecided => Low
** Tags added: maintenance
--
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):
New
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
References