summaryrefslogtreecommitdiff
path: root/base_accounting_kit/views/multiple_invoice_form.xml
blob: 0a9cc3251164d54da5908ae397d3d3a94a32cff8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="multiple_invoice_view_form" model="ir.ui.view">
        <field name="name">multiple.invoice.form.inherit.account.journal</field>
        <field name="model">account.journal</field>
        <field name="inherit_id" ref="account.view_account_journal_form" />
        <field name="arch" type="xml">
            <page name="advanced_settings" position="inside">

                <group string="Multiple Invoice Copies" attrs="{'invisible': [('type', 'not in',['sale', 'purchase'])]}">
                    <field name="multiple_invoice_type" style="width: 40%"/>

                </group>
                <group attrs="{'invisible': [('type', 'not in',['sale', 'purchase'])]}">
                    <div class="mt8">
                        <button name="%(base_accounting_kit.action_multiple_invoice_layout_configurator)d" string="Configure Copy Layout" type="action" class="oe_link" icon="fa-arrow-right"/>
                    </div>
                </group>

                <group attrs="{'invisible': [('type', 'not in',['sale', 'purchase'])]}">
                    <div>
                        <field name="multiple_invoice_ids" widget="one2many" nolabel="1">
                            <tree editable="bottom">
                                <field name="sequence" widget="handle"/>
                                <field name="copy_name" style="width: 75"/>
                            </tree>
                         </field>
                    </div>
                </group>
            </page>
        </field>
    </record>
</odoo>