Mayur Maheshwari(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-689675-mma into
lp:openobject-addons.
Requested reviews:
Rucha (Open ERP) (rpa-openerp)
Related bugs:
Bug #689675 in OpenERP Addons: "[PS] Not possible to invoice an outgoing
packing from the form view"
https://bugs.launchpad.net/openobject-addons/+bug/689675
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-689675-mma/+merge/65189
Hello
Stock : Now possible to invoice an outgoing packing from the form view
Action
Thanks
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-689675-mma/+merge/65189
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-689675-mma.
=== 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-06-20 12:46:02 +0000
@@ -40,6 +40,8 @@
browse_picking = model_pool.browse(cr, uid, res_ids, context=context)
for pick in browse_picking:
+ if not pick.move_lines:
+ continue
src_usage = pick.move_lines[0].location_id.usage
dest_usage = pick.move_lines[0].location_dest_id.usage
type = pick.type
@@ -59,6 +61,8 @@
t1 = jr_type.id,jr_type.name
if t1 not in vals:
vals.append(t1)
+ if not vals:
+ raise osv.except_osv(_('Warning !'), _('Either there are no moves linked to the picking or Accounting Journals are misconfigured!'))
return vals
_______________________________________________
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