summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2016-09-07 08:57:57 +0200
committerNicolas Lempereur <nle@odoo.com>2016-09-07 09:02:18 +0200
commitb4e829f96eee19d162b57dc013cde7ff5e1f1508 (patch)
tree8f9c029042e138614b02b7da406ac355515c32a1 /addons
parent3ba9dba798268f54c3136bef0aa5157aa82cba23 (diff)
[FIX] stock: @api.model on _prepare_values_extra_move
In saas-11 stock was migrated to new API, but some old API still called _prepare_values_extra_move so it needs to be callable via both API version. opw-687958
Diffstat (limited to 'addons')
-rw-r--r--addons/stock/models/stock_picking.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/stock/models/stock_picking.py b/addons/stock/models/stock_picking.py
index 1a91fd968d1..f2b05321384 100644
--- a/addons/stock/models/stock_picking.py
+++ b/addons/stock/models/stock_picking.py
@@ -911,6 +911,7 @@ class Picking(models.Model):
moves.action_confirm()
return moves
+ @api.model
def _prepare_values_extra_move(self, op, product, remaining_qty):
"""
Creates an extra move when there is no corresponding original move to be copied