openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #16256
[Bug 1060259] [NEW] partial picking wizard generate wrong invoice
Public bug reported:
When you use Receive Products wizard (stock.partial.picking) from a "To
Be Invoiced" picking (defined from the purchase order property Based on
incoming shipments), the result invoice reflects the products and
quantities of the backorder (the picking don't received yet) instead to
reflects the real products and quantities received and registered in the
Receive Products wizard.
I added this code to fix this :
=== modificado archivo stock_invoice_directly/wizard/stock_invoice.py
--- stock_invoice_directly/wizard/stock_invoice.py 2011-10-16 01:28:00 +0000
+++ stock_invoice_directly/wizard/stock_invoice.py 2012-10-02 14:22:35 +0000
@@ -32,7 +32,7 @@
result = super(invoice_directly, self).do_partial(cr, uid, ids, context)
partial = self.browse(cr, uid, ids[0], context)
context.update(active_model='stock.picking',
- active_ids=[partial.picking_id.id])
+ active_ids=[partial.picking_id.backorder_id.id])
if partial.picking_id.invoice_state == '2binvoiced':
return {
'name': 'Create Invoice',
Openerp Addons trunk7.0 r.7555
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1060259
Title:
partial picking wizard generate wrong invoice
Status in OpenERP Addons (modules):
New
Bug description:
When you use Receive Products wizard (stock.partial.picking) from a
"To Be Invoiced" picking (defined from the purchase order property
Based on incoming shipments), the result invoice reflects the products
and quantities of the backorder (the picking don't received yet)
instead to reflects the real products and quantities received and
registered in the Receive Products wizard.
I added this code to fix this :
=== modificado archivo stock_invoice_directly/wizard/stock_invoice.py
--- stock_invoice_directly/wizard/stock_invoice.py 2011-10-16 01:28:00 +0000
+++ stock_invoice_directly/wizard/stock_invoice.py 2012-10-02 14:22:35 +0000
@@ -32,7 +32,7 @@
result = super(invoice_directly, self).do_partial(cr, uid, ids, context)
partial = self.browse(cr, uid, ids[0], context)
context.update(active_model='stock.picking',
- active_ids=[partial.picking_id.id])
+ active_ids=[partial.picking_id.backorder_id.id])
if partial.picking_id.invoice_state == '2binvoiced':
return {
'name': 'Create Invoice',
Openerp Addons trunk7.0 r.7555
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1060259/+subscriptions
Follow ups
References