mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[MIG] sql_export_mail: Migration to 17.0
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
|
||||
<record id="sql_export_mail_view_form" model="ir.ui.view">
|
||||
<field name="model">sql.export</field>
|
||||
<field name="inherit_id" ref="sql_export.sql_export_view_form" />
|
||||
@@ -11,13 +9,13 @@
|
||||
name="create_cron"
|
||||
string="Create Cron"
|
||||
type="object"
|
||||
attrs="{'invisible': ['|', ('state', '=', 'draft'), ('mail_user_ids', '=', [(6, False, [])])]}"
|
||||
invisible="state == 'draft' or not mail_user_ids"
|
||||
/>
|
||||
</button>
|
||||
<field name="copy_options" position="after">
|
||||
<field
|
||||
name="mail_condition"
|
||||
attrs="{'invisible': [('cron_ids', '=', [(6, False, [])])]}"
|
||||
invisible="not cron_ids"
|
||||
groups="base.group_system"
|
||||
/>
|
||||
</field>
|
||||
@@ -39,10 +37,8 @@
|
||||
domain="[('model_id', '=', 'sql.export')]"
|
||||
/>
|
||||
</group>
|
||||
|
||||
</page>
|
||||
</page>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user