From c48616fbe175e65d61aabb9e1c00525a13c17230 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Mon, 20 Apr 2020 16:26:38 +0200 Subject: [PATCH] [FIX] when adapting a view, also postprocess it --- account_payment_order/models/account_move_line.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/account_payment_order/models/account_move_line.py b/account_payment_order/models/account_move_line.py index f5c251624..ca2fb04e8 100644 --- a/account_payment_order/models/account_move_line.py +++ b/account_payment_order/models/account_move_line.py @@ -132,5 +132,8 @@ class AccountMoveLine(models.Model): doc.remove(elem) for elem in doc.xpath("//field[@name='credit']"): doc.remove(elem) - result['arch'] = etree.tostring(doc) + arch, fields = self.env['ir.ui.view'].postprocess_and_fields( + self._name, doc, view_id, + ) + result.update(arch=arch, fields=fields) return result