line: disable column 'quantity_balance' if cashbook-feature != asset

This commit is contained in:
Frederik Jaeckel 2023-01-15 11:03:33 +01:00
parent 8acfa35289
commit 4ef14cd44b
5 changed files with 50 additions and 7 deletions

13
view/line_list.xml Normal file
View file

@ -0,0 +1,13 @@
<?xml version="1.0"?>
<!-- This file is part of the cashbook-module from m-ds for Tryton.
The COPYRIGHT file at the top level of this repository contains the
full copyright notices and license terms. -->
<data>
<xpath expr="/tree/field[@name='balance']" position="after">
<field name="quantity_credit"/>
<field name="quantity_debit"/>
<field name="quantity_balance"/>
</xpath>
</data>

12
view/line_recon_list.xml Normal file
View file

@ -0,0 +1,12 @@
<?xml version="1.0"?>
<!-- This file is part of the cashbook-module from m-ds for Tryton.
The COPYRIGHT file at the top level of this repository contains the
full copyright notices and license terms. -->
<data>
<xpath expr="/tree/field[@name='debit']" position="after">
<field name="quantity_credit"/>
<field name="quantity_debit"/>
</xpath>
</data>