[IMP] account_ebics: hide process button on ebics_file when no download process

This commit is contained in:
Luc De Meyer
2025-01-03 15:01:54 +01:00
parent 7425d6003b
commit 30313e58a4
11 changed files with 113 additions and 81 deletions

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" ?>
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="ebics_file_view_search" model="ir.ui.view">
@@ -73,9 +73,10 @@
<field name="arch" type="xml">
<form string="EBICS File" create="false">
<header>
<field name="download_process_method" invisible="1" />
<button
name="set_to_draft"
states="done"
attrs="{'invisible': ['|', ('download_process_method', '=', False), ('state', '!=', 'done')]}"
string="Set to Draft"
type="object"
groups="account.group_account_manager"
@@ -83,7 +84,7 @@
<button
name="process"
class="oe_highlight"
states="draft"
attrs="{'invisible': ['|', ('download_process_method', '=', False), ('state', '!=', 'draft')]}"
string="Process"
type="object"
groups="account.group_account_invoice"
@@ -91,27 +92,37 @@
/>
<button
name="set_to_done"
states="draft"
attrs="{'invisible': ['|', ('download_process_method', '=', False), ('state', '!=', 'draft')]}"
string="Set to Done"
type="object"
groups="account.group_account_manager"
/>
<field name="state" widget="statusbar" />
</header>
<group colspan="4" col="4">
<field name="date" string="Download Date" />
<field name="name" />
<field name="data" filename="name" />
<field name="format_id" />
<field name="date_from" />
<field name="date_to" />
<field name="user_id" />
<field name="ebics_userid_id" />
<field
name="company_ids"
widget="many2many_tags"
groups="base.group_multi_company"
name="state"
widget="statusbar"
attrs="{'invisible': [('download_process_method', '=', False)]}"
/>
</header>
<group name="main">
<group name="main-full-screen" colspan="2" col="2">
<field name="name" />
<field name="data" filename="name" />
<field name="format_id" />
</group>
<group name="main-left">
<field name="date" string="Download Date" />
<field name="user_id" />
<field name="ebics_userid_id" />
</group>
<group name="main-right">
<field name="date_from" />
<field name="date_to" />
<field
name="company_ids"
widget="many2many_tags"
groups="base.group_multi_company"
/>
</group>
</group>
<notebook>
<page string="Additional Information">