From 3a16ed1658d4cbda0f2fbbf8adc49a3530877201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 11 Feb 2014 18:10:48 +0100 Subject: [PATCH] Use active_ids in form_relate Only active_mode, active_id and active_ids can be used on relate domain because it is the only values which could be sur to be present. Also it always try to use active_ids over active_id to give more possibilities to the user. issue2474 review3261002 --- party.xml | 2 +- purchase.xml | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/party.xml b/party.xml index 4f70ba5d4f..d3425351ee 100644 --- a/party.xml +++ b/party.xml @@ -6,7 +6,7 @@ this repository contains the full copyright notices and license terms. --> Purchases purchase.purchase - [("party", "=", Eval('active_id'))] + [('party', 'in', Eval('active_ids'))] diff --git a/purchase.xml b/purchase.xml index a0427d88c2..2d11065c52 100644 --- a/purchase.xml +++ b/purchase.xml @@ -69,7 +69,7 @@ this repository contains the full copyright notices and license terms. --> Shipments stock.shipment.in - [("id", "in", Eval('shipments'))] + [('moves.purchase', 'in', Eval('active_ids'))] @@ -80,7 +80,7 @@ this repository contains the full copyright notices and license terms. --> Returns stock.shipment.in.return - [("id", "in", Eval('shipment_returns'))] + [('moves.purchase', 'in', Eval('active_ids'))] @@ -91,8 +91,7 @@ this repository contains the full copyright notices and license terms. --> Invoices account.invoice - [("id", "in", Eval('invoices'))] - {'type': 'in_invoice'} + [('lines.origin.purchase.id', 'in', Eval('active_ids'), 'purchase.line')] @@ -166,7 +165,7 @@ this repository contains the full copyright notices and license terms. --> Purchases purchase.purchase - [('invoices', 'in', [Eval('id')])] + [('invoices', 'in', Eval('active_ids'))]