2022-05-10 19:40:54 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
2018-08-14 15:04:39 +00:00
|
|
|
<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>
|
2022-05-10 19:40:54 +00:00
|
|
|
<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"
|
2023-06-25 15:04:49 +00:00
|
|
|
domain="[('ebics_config_id', '=', ebics_config_id), ('user_ids.id', '=', uid), ('transaction_rights', 'in', ['both', 'down'])]"
|
2022-05-10 19:40:54 +00:00
|
|
|
required="1"
|
|
|
|
options="{'no_create': True, 'no_open': True}"
|
|
|
|
/>
|
2023-03-05 15:52:28 +00:00
|
|
|
<field
|
|
|
|
name="ebics_passphrase"
|
|
|
|
password="True"
|
2023-03-25 18:23:33 +00:00
|
|
|
attrs="{'invisible': [('ebics_passphrase_store', '=', True)], 'required': [('ebics_passphrase_store', '=', False)]}"
|
2023-03-05 15:52:28 +00:00
|
|
|
/>
|
2023-03-25 18:23:33 +00:00
|
|
|
<field name="ebics_passphrase_store" invisible="1" />
|
2022-05-10 19:40:54 +00:00
|
|
|
<field name="date_from" />
|
|
|
|
<field name="date_to" />
|
|
|
|
<field
|
|
|
|
name="format_id"
|
|
|
|
domain="[('type', '=', 'down'), ('id', 'in', allowed_format_ids)]"
|
|
|
|
/>
|
|
|
|
<field name="order_type" />
|
|
|
|
<field name="allowed_format_ids" invisible="1" />
|
2018-08-14 15:04:39 +00:00
|
|
|
</group>
|
|
|
|
<footer>
|
2022-05-10 19:40:54 +00:00
|
|
|
<button
|
|
|
|
name="ebics_download"
|
|
|
|
string="Download Files"
|
|
|
|
type="object"
|
2023-05-28 20:12:47 +00:00
|
|
|
class="btn-primary"
|
|
|
|
data-hotkey="q"
|
|
|
|
/>
|
|
|
|
<button
|
|
|
|
string="Cancel"
|
|
|
|
class="btn-secondary"
|
|
|
|
special="cancel"
|
|
|
|
data-hotkey="z"
|
2022-05-10 19:40:54 +00:00
|
|
|
/>
|
2018-08-14 15:04:39 +00:00
|
|
|
</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>
|
2022-05-10 19:40:54 +00:00
|
|
|
<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"
|
2023-06-25 15:04:49 +00:00
|
|
|
domain="[('ebics_config_id', '=', ebics_config_id), ('user_ids.id', '=', uid), ('transaction_rights', 'in', ['both', 'up'])]"
|
2022-05-10 19:40:54 +00:00
|
|
|
required="1"
|
|
|
|
options="{'no_create': True, 'no_open': True}"
|
|
|
|
/>
|
2023-03-05 15:52:28 +00:00
|
|
|
<field
|
|
|
|
name="ebics_passphrase"
|
|
|
|
password="True"
|
2023-03-25 18:23:33 +00:00
|
|
|
attrs="{'invisible': [('ebics_passphrase_store', '=', True)], 'required': [('ebics_passphrase_store', '=', False)]}"
|
2023-03-05 15:52:28 +00:00
|
|
|
/>
|
2023-03-25 18:23:33 +00:00
|
|
|
<field name="ebics_passphrase_store" invisible="1" />
|
2022-05-10 19:40:54 +00:00
|
|
|
<separator string="Select your file :" colspan="2" />
|
|
|
|
<field name="upload_data" filename="upload_fname" required="1" />
|
|
|
|
<field name="upload_fname" invisible="1" />
|
2023-08-05 17:33:05 +00:00
|
|
|
<field name="upload_fname_dummy" string="Upload Filename" />
|
2022-05-10 19:40:54 +00:00
|
|
|
<field
|
|
|
|
name="format_id"
|
|
|
|
required="1"
|
|
|
|
domain="[('type', '=', 'up'), ('id', 'in', allowed_format_ids)]"
|
|
|
|
/>
|
|
|
|
<field name="order_type" />
|
|
|
|
<field
|
|
|
|
name="test_mode"
|
2022-11-24 21:04:58 +00:00
|
|
|
attrs="{'invisible': [('order_type', 'not in', ('FUL', 'BTU'))]}"
|
2022-05-10 19:40:54 +00:00
|
|
|
/>
|
|
|
|
<field name="allowed_format_ids" invisible="1" />
|
2018-08-14 15:04:39 +00:00
|
|
|
</group>
|
|
|
|
<footer>
|
2022-05-10 19:40:54 +00:00
|
|
|
<button
|
|
|
|
name="ebics_upload"
|
|
|
|
string="Upload File"
|
|
|
|
type="object"
|
2023-05-28 20:12:47 +00:00
|
|
|
class="btn-primary"
|
|
|
|
data-hotkey="q"
|
|
|
|
/>
|
|
|
|
<button
|
|
|
|
string="Cancel"
|
|
|
|
class="btn-secondary"
|
|
|
|
special="cancel"
|
|
|
|
data-hotkey="z"
|
2022-05-10 19:40:54 +00:00
|
|
|
/>
|
2018-08-14 15:04:39 +00:00
|
|
|
</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 :" />
|
2022-05-10 19:40:54 +00:00
|
|
|
<field name="note" colspan="4" nolabel="1" width="850" height="400" />
|
2018-08-14 15:04:39 +00:00
|
|
|
<footer>
|
2022-05-10 19:40:54 +00:00
|
|
|
<button
|
|
|
|
name="view_ebics_file"
|
|
|
|
type="object"
|
|
|
|
string="View EBICS File(s)"
|
2023-05-28 20:12:47 +00:00
|
|
|
class="btn-primary"
|
2022-05-10 19:40:54 +00:00
|
|
|
invisible="not context.get('ebics_file_ids')"
|
2023-05-28 20:12:47 +00:00
|
|
|
data-hotkey="q"
|
|
|
|
/>
|
|
|
|
<button
|
|
|
|
string="Close"
|
|
|
|
class="btn-secondary"
|
|
|
|
special="cancel"
|
|
|
|
data-hotkey="z"
|
2022-05-10 19:40:54 +00:00
|
|
|
/>
|
2018-08-14 15:04:39 +00:00
|
|
|
</footer>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="ebics_xfer_action_download" model="ir.actions.act_window">
|
2023-06-21 11:34:37 +00:00
|
|
|
<field name="name">EBICS File Transfer - Download</field>
|
2018-08-14 15:04:39 +00:00
|
|
|
<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>
|
2022-05-10 19:40:54 +00:00
|
|
|
<field name="view_id" ref="ebics_xfer_view_form_download" />
|
2018-08-14 15:04:39 +00:00
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="ebics_xfer_action_upload" model="ir.actions.act_window">
|
2023-06-21 11:34:37 +00:00
|
|
|
<field name="name">EBICS File Transfer - Upload</field>
|
2018-08-14 15:04:39 +00:00
|
|
|
<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>
|
2022-05-10 19:40:54 +00:00
|
|
|
<field name="view_id" ref="ebics_xfer_view_form_upload" />
|
2018-08-14 15:04:39 +00:00
|
|
|
</record>
|
|
|
|
|
|
|
|
</odoo>
|