mirror of
				https://github.com/brain-tec/account_ebics.git
				synced 2025-11-04 15:10:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			168 lines
		
	
	
		
			6.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			168 lines
		
	
	
		
			6.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
<?xml version="1.0" encoding="utf-8" ?>
 | 
						|
<odoo>
 | 
						|
    <record id="ebics_xfer_view_form_download" model="ir.ui.view">
 | 
						|
        <field name="name">EBICS File Download</field>
 | 
						|
        <field name="model">ebics.xfer</field>
 | 
						|
        <field name="priority">1</field>
 | 
						|
        <field name="arch" type="xml">
 | 
						|
            <form string="EBICS File Download">
 | 
						|
                <group>
 | 
						|
                    <separator string="Select your bank :" colspan="2" />
 | 
						|
                    <field
 | 
						|
                        name="ebics_config_id"
 | 
						|
                        required="1"
 | 
						|
                        options="{'no_create': True, 'no_open': True}"
 | 
						|
                    />
 | 
						|
                    <field
 | 
						|
                        name="ebics_userid_id"
 | 
						|
                        domain="[('ebics_config_id', '=', ebics_config_id), ('user_ids.id', '=', uid), ('transaction_rights', 'in', ['both', 'down'])]"
 | 
						|
                        required="1"
 | 
						|
                        options="{'no_create': True, 'no_open': True}"
 | 
						|
                    />
 | 
						|
                    <field
 | 
						|
                        name="ebics_passphrase"
 | 
						|
                        password="True"
 | 
						|
                        invisible="ebics_passphrase_store"
 | 
						|
                        required="not ebics_passphrase_store"
 | 
						|
                    />
 | 
						|
                    <field name="date_from" />
 | 
						|
                    <field name="date_to" />
 | 
						|
                    <field
 | 
						|
                        name="format_id"
 | 
						|
                        domain="[('type', '=', 'down'), ('id', 'in', allowed_format_ids)]"
 | 
						|
                    />
 | 
						|
                    <field name="order_type" />
 | 
						|
                </group>
 | 
						|
                <footer>
 | 
						|
                    <button
 | 
						|
                        name="ebics_download"
 | 
						|
                        string="Download Files"
 | 
						|
                        type="object"
 | 
						|
                        class="btn-primary"
 | 
						|
                        data-hotkey="q"
 | 
						|
                    />
 | 
						|
                    <button
 | 
						|
                        string="Cancel"
 | 
						|
                        class="btn-secondary"
 | 
						|
                        special="cancel"
 | 
						|
                        data-hotkey="z"
 | 
						|
                    />
 | 
						|
                </footer>
 | 
						|
            </form>
 | 
						|
        </field>
 | 
						|
    </record>
 | 
						|
 | 
						|
    <record id="ebics_xfer_view_form_upload" model="ir.ui.view">
 | 
						|
        <field name="name">EBICS File Upload</field>
 | 
						|
        <field name="model">ebics.xfer</field>
 | 
						|
        <field name="priority">1</field>
 | 
						|
        <field name="arch" type="xml">
 | 
						|
            <form string="EBICS File Upload">
 | 
						|
                <group>
 | 
						|
                    <separator string="Select your bank :" colspan="2" />
 | 
						|
                    <field
 | 
						|
                        name="ebics_config_id"
 | 
						|
                        required="1"
 | 
						|
                        options="{'no_create': True, 'no_open': True}"
 | 
						|
                    />
 | 
						|
                    <field
 | 
						|
                        name="ebics_userid_id"
 | 
						|
                        domain="[('ebics_config_id', '=', ebics_config_id), ('user_ids.id', '=', uid), ('transaction_rights', 'in', ['both', 'up'])]"
 | 
						|
                        required="1"
 | 
						|
                        options="{'no_create': True, 'no_open': True}"
 | 
						|
                    />
 | 
						|
                    <field
 | 
						|
                        name="ebics_passphrase"
 | 
						|
                        password="True"
 | 
						|
                        invisible="ebics_passphrase_store"
 | 
						|
                        required="not ebics_passphrase_store"
 | 
						|
                    />
 | 
						|
                    <field
 | 
						|
                        name="ebics_sig_passphrase"
 | 
						|
                        password="True"
 | 
						|
                        invisible="ebics_sig_passphrase_invisible"
 | 
						|
                    />
 | 
						|
                    <separator string="Select your file :" colspan="2" />
 | 
						|
                    <field name="upload_data" filename="upload_fname" required="1" />
 | 
						|
                    <field name="upload_fname" invisible="1" />
 | 
						|
                    <field name="upload_fname_dummy" string="Upload Filename" />
 | 
						|
                    <field
 | 
						|
                        name="format_id"
 | 
						|
                        required="1"
 | 
						|
                        domain="[('type', '=', 'up'), ('id', 'in', allowed_format_ids)]"
 | 
						|
                        readonly="context.get('active_model') == 'account.payment.order'"
 | 
						|
                    />
 | 
						|
                    <field name="order_type" />
 | 
						|
                    <field
 | 
						|
                        name="test_mode"
 | 
						|
                        invisible="order_type not in ('FUL', 'BTU')"
 | 
						|
                    />
 | 
						|
                </group>
 | 
						|
                <footer>
 | 
						|
                    <button
 | 
						|
                        name="ebics_upload"
 | 
						|
                        string="Upload File"
 | 
						|
                        type="object"
 | 
						|
                        class="btn-primary"
 | 
						|
                        data-hotkey="q"
 | 
						|
                    />
 | 
						|
                    <button
 | 
						|
                        string="Cancel"
 | 
						|
                        class="btn-secondary"
 | 
						|
                        special="cancel"
 | 
						|
                        data-hotkey="z"
 | 
						|
                    />
 | 
						|
                </footer>
 | 
						|
            </form>
 | 
						|
        </field>
 | 
						|
    </record>
 | 
						|
 | 
						|
    <record id="ebics_xfer_view_form_result" model="ir.ui.view">
 | 
						|
        <field name="name">EBICS File Transfer</field>
 | 
						|
        <field name="model">ebics.xfer</field>
 | 
						|
        <field name="priority">2</field>
 | 
						|
        <field name="arch" type="xml">
 | 
						|
            <form string="EBICS File Transfer">
 | 
						|
                <separator colspan="4" string="Results :" />
 | 
						|
                <field name="note" colspan="4" nolabel="1" width="850" height="400" />
 | 
						|
                <footer>
 | 
						|
                    <button
 | 
						|
                        name="view_ebics_file"
 | 
						|
                        type="object"
 | 
						|
                        string="View EBICS File(s)"
 | 
						|
                        class="btn-primary"
 | 
						|
                        invisible="not context.get('ebics_file_ids')"
 | 
						|
                        data-hotkey="q"
 | 
						|
                    />
 | 
						|
                    <button
 | 
						|
                        string="Close"
 | 
						|
                        class="btn-secondary"
 | 
						|
                        special="cancel"
 | 
						|
                        data-hotkey="z"
 | 
						|
                    />
 | 
						|
                </footer>
 | 
						|
            </form>
 | 
						|
        </field>
 | 
						|
    </record>
 | 
						|
 | 
						|
    <record id="ebics_xfer_action_download" model="ir.actions.act_window">
 | 
						|
        <field name="name">EBICS File Transfer - Download</field>
 | 
						|
        <field name="type">ir.actions.act_window</field>
 | 
						|
        <field name="res_model">ebics.xfer</field>
 | 
						|
        <field name="view_mode">form</field>
 | 
						|
        <field name="target">new</field>
 | 
						|
        <field name="context">{'ebics_download': 1}</field>
 | 
						|
        <field name="view_id" ref="ebics_xfer_view_form_download" />
 | 
						|
    </record>
 | 
						|
 | 
						|
    <record id="ebics_xfer_action_upload" model="ir.actions.act_window">
 | 
						|
        <field name="name">EBICS File Transfer - Upload</field>
 | 
						|
        <field name="type">ir.actions.act_window</field>
 | 
						|
        <field name="res_model">ebics.xfer</field>
 | 
						|
        <field name="view_mode">form</field>
 | 
						|
        <field name="target">new</field>
 | 
						|
        <field name="context">{'ebics_upload': 1}</field>
 | 
						|
        <field name="view_id" ref="ebics_xfer_view_form_upload" />
 | 
						|
    </record>
 | 
						|
</odoo>
 |