changeset e1837a324796 in modules/account_payment:default
details:
https://hg.tryton.org/modules/account_payment?cmd=changeset&node=e1837a324796
description:
Add optional column on tree view
issue10989
review374321002
diffstat:
view/move_line_list.xml | 14 +++++++-------
view/payment_group_list.xml | 12 ++++++------
view/payment_journal_list.xml | 2 +-
view/payment_list.xml | 6 +++---
4 files changed, 17 insertions(+), 17 deletions(-)
diffs (74 lines):
diff -r aebcb1357c32 -r e1837a324796 view/move_line_list.xml
--- a/view/move_line_list.xml Thu Feb 03 22:13:48 2022 +0100
+++ b/view/move_line_list.xml Thu Feb 03 23:13:26 2022 +0100
@@ -2,16 +2,16 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tree>
- <field name="move"/>
- <field name="move_origin"/>
- <field name="description" expand="1"/>
+ <field name="move" optional="1"/>
+ <field name="move_origin" optional="1"/>
+ <field name="description" expand="1" optional="1"/>
<field name="party" expand="1"/>
<field name="maturity_date"/>
<field name="payment_amount"/>
- <field name="account" expand="1"/>
- <field name="debit"/>
- <field name="credit"/>
- <field name="amount_second_currency"/>
+ <field name="account" expand="1" optional="1"/>
+ <field name="debit" optional="1"/>
+ <field name="credit" optional="1"/>
+ <field name="amount_second_currency" optional="1"/>
<button name="payment_block"/>
<button name="payment_unblock"/>
<button name="pay" tree_invisible="1"/>
diff -r aebcb1357c32 -r e1837a324796 view/payment_group_list.xml
--- a/view/payment_group_list.xml Thu Feb 03 22:13:48 2022 +0100
+++ b/view/payment_group_list.xml Thu Feb 03 23:13:26 2022 +0100
@@ -3,10 +3,10 @@
this repository contains the full copyright notices and license terms. -->
<tree keyword_open="1">
<field name="number"/>
- <field name="journal"/>
- <field name="kind"/>
- <field name="payment_count"/>
- <field name="payment_amount"/>
- <field name="payment_amount_succeeded"/>
- <field name="payment_complete"/>
+ <field name="journal" optional="0"/>
+ <field name="kind" optional="0"/>
+ <field name="payment_count" optional="1"/>
+ <field name="payment_amount" optional="1"/>
+ <field name="payment_amount_succeeded" optional="1"/>
+ <field name="payment_complete" optional="1"/>
</tree>
diff -r aebcb1357c32 -r e1837a324796 view/payment_journal_list.xml
--- a/view/payment_journal_list.xml Thu Feb 03 22:13:48 2022 +0100
+++ b/view/payment_journal_list.xml Thu Feb 03 23:13:26 2022 +0100
@@ -3,6 +3,6 @@
this repository contains the full copyright notices and license terms. -->
<tree>
<field name="name" expand="1"/>
- <field name="currency"/>
+ <field name="currency" optional="1"/>
<field name="process_method"/>
</tree>
diff -r aebcb1357c32 -r e1837a324796 view/payment_list.xml
--- a/view/payment_list.xml Thu Feb 03 22:13:48 2022 +0100
+++ b/view/payment_list.xml Thu Feb 03 23:13:26 2022 +0100
@@ -2,9 +2,9 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tree>
- <field name="journal" expand="1"/>
- <field name="kind"/>
- <field name="party" expand="2"/>
+ <field name="journal" expand="1" optional="0"/>
+ <field name="kind" optional="0"/>
+ <field name="party" expand="2" optional="0"/>
<field name="amount"/>
<field name="date"/>
<field name="state"/>