From 4c56b223c49ae3960b08afaf0ed236a2fa2fcf6e Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Fri, 17 Feb 2017 11:06:33 +0100 Subject: [PATCH] Improve relate domain inversion when single record issue5475 review33801002 --- party.xml | 3 ++- purchase.xml | 11 ++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/party.xml b/party.xml index 2d2003418f..285f699e93 100644 --- a/party.xml +++ b/party.xml @@ -7,7 +7,8 @@ this repository contains the full copyright notices and license terms. --> Purchases purchase.purchase + eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('party', '=', Eval('active_id')), ('party', 'in', Eval('active_ids')))]" + pyson="1"/> diff --git a/purchase.xml b/purchase.xml index 22504b6846..531d0f6802 100644 --- a/purchase.xml +++ b/purchase.xml @@ -70,7 +70,7 @@ this repository contains the full copyright notices and license terms. --> Shipments stock.shipment.in Returns stock.shipment.in.return account.invoice Purchases purchase.purchase + eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('invoices', '=', Eval('active_id')), ('invoices', 'in', Eval('active_ids')))]" + pyson="1"/> @@ -461,7 +462,7 @@ this repository contains the full copyright notices and license terms. --> Prices purchase.product_supplier.price