Initial commit
This commit is contained in:
92
Fusion Accounting/wizard/account_report_send.xml
Normal file
92
Fusion Accounting/wizard/account_report_send.xml
Normal file
@@ -0,0 +1,92 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="account_report_send_form" model="ir.ui.view">
|
||||
<field name="name">account.report.send.form</field>
|
||||
<field name="model">account.report.send</field>
|
||||
<field name="group_ids" eval="[Command.link(ref('base.group_user'))]"/>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<!-- Invisible fields -->
|
||||
<field name="mode" invisible="1"/>
|
||||
<field name="enable_download" invisible="1"/>
|
||||
<field name="enable_send_mail" invisible="1"/>
|
||||
<field name="send_mail_readonly" invisible="1"/>
|
||||
<field name="display_mail_composer" invisible="1"/>
|
||||
<field name="mail_lang" invisible="1"/>
|
||||
<field name="account_report_id" invisible="1"/>
|
||||
<field name="report_options" invisible="1"/>
|
||||
|
||||
<div class="m-0" name="warnings" invisible="not warnings">
|
||||
<field name="warnings" class="o_field_html" widget="actionable_errors"/>
|
||||
</div>
|
||||
|
||||
<!-- Options -->
|
||||
<div name="options" class="row">
|
||||
<div name="standard_options" class="col-3">
|
||||
<div name="option_send_mail"
|
||||
invisible="not enable_send_mail">
|
||||
<i class="fa fa-question-circle ml4"
|
||||
role="img"
|
||||
aria-label="Warning"
|
||||
title="The email address is unknown on the partner"
|
||||
invisible="not send_mail_readonly"/>
|
||||
</div>
|
||||
</div>
|
||||
<div name="advanced_options" class="col-3"/>
|
||||
</div>
|
||||
|
||||
<!-- Mail -->
|
||||
<div invisible="not checkbox_send_mail">
|
||||
<group invisible="not display_mail_composer">
|
||||
<label for="mail_partner_ids" string="Recipients"/>
|
||||
<div>
|
||||
<field name="mail_partner_ids"
|
||||
widget="many2many_tags_email"
|
||||
placeholder="Add contacts to notify..."
|
||||
options="{'no_quick_create': True}"
|
||||
context="{'show_email': True, 'form_view_ref': 'base.view_partner_simple_form'}"/>
|
||||
</div>
|
||||
<field name="mail_subject"
|
||||
placeholder="Subject..."
|
||||
required="checkbox_send_mail and mode == 'single'"/>
|
||||
</group>
|
||||
<field name="mail_body"
|
||||
class="oe-bordered-editor"
|
||||
widget="html_mail"
|
||||
invisible="not display_mail_composer"/>
|
||||
<group>
|
||||
<group invisible="not display_mail_composer">
|
||||
<field name="mail_attachments_widget"
|
||||
widget="mail_attachments"
|
||||
string="Attach a file"
|
||||
nolabel="1"
|
||||
colspan="2"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="mail_template_id"
|
||||
required="mode == 'multi'"
|
||||
options="{'no_create': True, 'no_edit': True}"
|
||||
context="{'default_model': 'res.partner'}"/>
|
||||
</group>
|
||||
</group>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<button string="Print & Send"
|
||||
invisible="not checkbox_send_mail and not checkbox_download"
|
||||
data-hotkey="q"
|
||||
name="action_send_and_print"
|
||||
type="object"
|
||||
class="print btn-primary o_mail_send">
|
||||
</button>
|
||||
<button string="Cancel"
|
||||
data-hotkey="x"
|
||||
special="cancel"
|
||||
class="btn-secondary"/>
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user