diff options
| author | Daniel Dico <ddico@oerp.ca> | 2014-08-10 21:19:47 -0400 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2015-06-26 15:56:42 +0200 |
| commit | a0797d3b35cc235048e7947dd7a3d38e18c3e350 (patch) | |
| tree | fa0b9707947c5a9b4dadb7aef16c04661bee7ce8 /addons | |
| parent | 6f60153e5d47c5b96befc7382686cb5872f5afb8 (diff) | |
[IMP] purchase: method action_picking_create return picking_id
Returning `picking_id` can be useful for overrides.
In addition, when there is no return statement,
the method basically returns None.
As this is a public method (not beginning with '_'), it can
be called with an xmlrpc call, and `None` is not an
accepted return value for the xmlrpc protocol.
Closes #1714
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/purchase/purchase.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index 778863841c7..bb21b7915a2 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -870,6 +870,7 @@ class purchase_order(osv.osv): } picking_id = self.pool.get('stock.picking').create(cr, uid, picking_vals, context=context) self._create_stock_moves(cr, uid, order, order.order_line, picking_id, context=context) + return picking_id def picking_done(self, cr, uid, ids, context=None): self.write(cr, uid, ids, {'shipped':1,'state':'approved'}, context=context) |
