From 7caed0c4a9a3ffd01adb10a8308fae15f502dddf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 14 Nov 2013 18:49:47 +0100 Subject: [PATCH] Fix wrong instantiation of Attachment Introduced with changeset 60c08c72a159 issue3481 review1621003 --- tryton/common/popup_menu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/common/popup_menu.py b/tryton/common/popup_menu.py index ac69109a24..4b4e743c1c 100644 --- a/tryton/common/popup_menu.py +++ b/tryton/common/popup_menu.py @@ -52,7 +52,7 @@ def populate(menu, model, record, title=''): Action._exec_action(action, data, {}) def attachment(menuitem): - Attachment(model, load(record).id, None) + Attachment(record, None) if title: if len(menu):