From bb6ced4a6f36998682bf5ee4c449d4dd8e3caad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 15 Sep 2016 22:21:09 +0200 Subject: [PATCH] Remove unnecessary copy of account_move The field does not exist. issue5880 review30491002 --- stock.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/stock.py b/stock.py index ff2cb03944..3d8047ce50 100644 --- a/stock.py +++ b/stock.py @@ -147,14 +147,6 @@ class Move: lines=account_move_lines, ) - @classmethod - def copy(cls, moves, default=None): - if default is None: - default = {} - default = default.copy() - default.setdefault('account_move', None) - return super(Move, cls).copy(moves, default=default) - @classmethod @ModelView.button @Workflow.transition('done')