Purnendu Singh (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-797477-psi into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #797477 in OpenERP Addons: "Accounting entries from goods receipt now
broken"
https://bugs.launchpad.net/openobject-addons/+bug/797477
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-797477-psi/+merge/68633
Hello,
Proposed patch holds the fixes for
https://bugs.launchpad.net/openobject-addons/+bug/797477
Description: Accounting entries from goods receipt now broken
Thanks,
Purnendu Singh
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-797477-psi/+merge/68633
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-797477-psi.
=== modified file 'stock/wizard/stock_invoice_onshipping.py'
--- stock/wizard/stock_invoice_onshipping.py 2011-05-02 18:46:43 +0000
+++ stock/wizard/stock_invoice_onshipping.py 2011-07-21 06:47:26 +0000
@@ -38,7 +38,7 @@
res_ids = context and context.get('active_ids', [])
vals = []
browse_picking = model_pool.browse(cr, uid, res_ids, context=context)
-
+
for pick in browse_picking:
src_usage = pick.move_lines[0].location_id.usage
dest_usage = pick.move_lines[0].location_dest_id.usage
@@ -53,7 +53,7 @@
journal_type = 'sale_refund'
else:
journal_type = 'sale'
-
+
value = journal_obj.search(cr, uid, [('type', '=',journal_type )])
for jr_type in journal_obj.browse(cr, uid, value, context=context):
t1 = jr_type.id,jr_type.name
@@ -129,7 +129,7 @@
res = picking_pool.action_invoice_create(cr, uid, active_ids,
journal_id = onshipdata_obj[0]['journal_id'],
group = onshipdata_obj[0]['group'],
- type = None,
+ type = inv_type,
context=context)
return res
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp