mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] sql_export_mail: black, isort, prettier
This commit is contained in:
committed by
Sylvain LE GAL
parent
1dedee2aae
commit
f7585a5b92
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
|
||||
@@ -7,19 +7,32 @@
|
||||
<field name="inherit_id" ref="sql_export.sql_export_view_form" />
|
||||
<field name="arch" type="xml">
|
||||
<button name="export_sql_query" position="after">
|
||||
<button name="create_cron" string="Create Cron" type="object" groups="base.group_system"
|
||||
attrs="{'invisible': ['|', ('state', '=', 'draft'), ('mail_user_ids', '=', [(6, False, [])])]}"/>
|
||||
<button
|
||||
name="create_cron"
|
||||
string="Create Cron"
|
||||
type="object"
|
||||
groups="base.group_system"
|
||||
attrs="{'invisible': ['|', ('state', '=', 'draft'), ('mail_user_ids', '=', [(6, False, [])])]}"
|
||||
/>
|
||||
</button>
|
||||
<field name="copy_options" position="after">
|
||||
<field name="mail_condition" attrs="{'invisible': [('cron_ids', '=', [(6, False, [])])]}"/>
|
||||
<field
|
||||
name="mail_condition"
|
||||
attrs="{'invisible': [('cron_ids', '=', [(6, False, [])])]}"
|
||||
/>
|
||||
</field>
|
||||
<group name="parameters" position="after">
|
||||
<group groups="sql_request_abstract.group_sql_request_user">
|
||||
<group string="Users Notified by e-mail">
|
||||
<field name="mail_user_ids" nolabel="1"/>
|
||||
<field name="mail_user_ids" nolabel="1" />
|
||||
</group>
|
||||
<group string="Crons" groups="base.group_system">
|
||||
<field name="cron_ids" nolabel="1" domain="[('function', '=', '_run_all_sql_export_for_cron')]" groups="base.group_system"/>
|
||||
<field
|
||||
name="cron_ids"
|
||||
nolabel="1"
|
||||
domain="[('function', '=', '_run_all_sql_export_for_cron')]"
|
||||
groups="base.group_system"
|
||||
/>
|
||||
</group>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user