view_account_journal.xml 922 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2020 - Today: GRAP (http://www.grap.coop)
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<openerp>

    <record id="view_account_journal" model="ir.ui.view">
        <field name="model">account.journal</field>
        <field name="inherit_id" ref="point_of_sale.view_account_journal_pos_user_form"/>
        <field name="arch" type="xml">
            <xpath expr="//field[@name='amount_authorized_diff']/.." position="after">
                <group name="meal_voucher" string="Meal Voucher">
                    <field name="meal_voucher_type"/>
                    <field name="meal_voucher_mixed_text"
                        attrs="{'invisible': [('meal_voucher_type', '!=', 'mixed')]}"/>
                </group>
            </xpath>
        </field>
    </record>

</openerp>