From c11481bfd3fe8b416bdc41284ddc3a90fb215a9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=80ngel=20=C3=80lvarez?= Date: Tue, 11 Oct 2022 12:40:17 +0200 Subject: [PATCH] fix missing field change --- weighing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weighing.py b/weighing.py index 4957fed..29e921b 100644 --- a/weighing.py +++ b/weighing.py @@ -269,7 +269,7 @@ class Weighing(Workflow, ModelSQL, ModelView): return contract_lines = ContractLine.search([ ('parcel', '=', parcel), - ('contract.producer', '=', producer), + ('contract.party', '=', producer), ('contract.state', '=', 'active'), ], limit=1) if not contract_lines: