From e7677eed2fb73553884300c641b8db8fa6955f95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 30 Apr 2018 14:53:28 +0200 Subject: [PATCH] Register Sale Line only when sale_price_list is activated The extras_depend is on sale_price_list and not sale. If sale is activated but not sale_price_list, the module may be loaded before sale and the Sale Line would not yet be present in the Pool. issue7391 review47381002 --- __init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index d968eba05d..fa8c74fe45 100644 --- a/__init__.py +++ b/__init__.py @@ -17,4 +17,4 @@ def register(): Pool.register( sale.Line, module='product_price_list_dates', type_='model', - depends=['sale']) + depends=['sale_price_list'])