From 683b0746beda2a2e89afc401be8baebba0583129 Mon Sep 17 00:00:00 2001 From: Romain Derie Date: Thu, 28 Jun 2018 16:45:38 +0200 Subject: [PATCH] [FIX] sale_payment: Pay Now was always hidden in SO panel-heading Since refactoring of account, payment and sale with commit 01216345 the `Pay Now` button in the panel-heading of the SO in the portal was always hidden except if there was a pending transaction. The button should be visible when there is no transaction. In that case `payment_tx_id` is an empty recordset, we can safely access its `state` field. Closes #25529 --- addons/sale_payment/views/sale_portal_templates.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale_payment/views/sale_portal_templates.xml b/addons/sale_payment/views/sale_portal_templates.xml index f23c5e272ad..50016f0479d 100644 --- a/addons/sale_payment/views/sale_portal_templates.xml +++ b/addons/sale_payment/views/sale_portal_templates.xml @@ -2,7 +2,7 @@