mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] when adapting a view, also postprocess it
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user