OCA/l10n-italy

View on GitHub
l10n_it_withholding_tax/wizard/create_wt_statement_view.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="wt_wizard_create_statement" model="ir.ui.view">
            <field name="name">Create Withholding Tax Statement</field>
            <field name="model">withholding.tax.wizard.create.statement</field>
            <field name="arch" type="xml">
                <form string="Create Withholding Tax Statement">
                    <group>
                        <group>
                            <field name="partner_id"/>
                            <field name="date"/>
                        </group>
                        <group>
                            <field name="move_id"/>
                        </group>
                    </group>
                    <newline/>
                    <group>
                        <group string="Document">
                            <field name="base"/>
                            <field name="tax"/>
                        </group>
                        <group string="Withholding Tax">
                            <field name="wt_account_move_line_id"/>
                            <field name="withholding_tax_id"/>
                            <field name="amount"/>
                        </group>
                    </group>
                    <newline/>
                    <group colspan="4">
                        <separator colspan="4"/>
                        <button icon="gtk-cancel" special="cancel" string="Cancel"/>
                        <button icon="gtk-ok" name="create_wt_statement" string="Create" type="object"/>
                    </group>
                </form>
            </field>
        </record>

        <act_window name="Create Withholding Tax Statement"
            res_model="withholding.tax.wizard.create.statement"
            src_model="account.move"
            view_mode="form"
            target="new"
            key2="client_action_multi"
            id="wt_wizard_create_statement_action"
            view_id="wt_wizard_create_statement"/>

        <record id="wt_wizard_create_statement_action" model="ir.actions.act_window">
            <field name="name">Create Withholding Tax Statement</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">withholding.tax.wizard.create.statement</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
            <field name="view_id" ref="wt_wizard_create_statement"/>
        </record>

    </data>
</openerp>