67 lines
4.3 KiB
XML
67 lines
4.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<record model="ir.ui.view" id="multi_compose_message_wizard_form">
|
|
<field name="name">multi.compose.message.form</field>
|
|
<field name="model">multi.compose.message</field>
|
|
<field name="groups_id" eval="[(4,ref('base.group_user'))]"/>
|
|
<field name="arch" type="xml">
|
|
<form string="Compose Email & Print">
|
|
<field name="print_attachment_id" invisible="1"/>
|
|
<div name="option_print" class="col-md-12 mb16">
|
|
<field name="is_print" widget="boolean_toggle"/>
|
|
<b><label for="is_print"/></b>
|
|
</div>
|
|
<div class="col-md-12 mb16" style="border-bottom: 1px solid #e5e5e5;"></div>
|
|
<div name="option_email" class="col-md-12 mb16">
|
|
<field name="is_email" widget="boolean_toggle"/>
|
|
<b><label for="is_email"/></b>
|
|
</div>
|
|
<div name="mail_form" attrs="{'invisible': [('is_email', '=', False)]}">
|
|
<group>
|
|
<!-- truly invisible fields for control and options -->
|
|
<field name="printed" invisible="1"/>
|
|
<field name="model" invisible="1"/>
|
|
<field name="res_id" invisible="1"/>
|
|
<field name="is_log" invisible="1"/>
|
|
<field name="company_id" invisible="1"/>
|
|
<!-- visible wizard -->
|
|
<label for="partner_ids" string="Recipients" groups="base.group_user"/>
|
|
<div groups="base.group_user">
|
|
<span attrs="{'invisible':['|', ('model', '=', False)]}">Followers of the document and</span>
|
|
<field name="partner_ids" widget="many2many_tags_email" placeholder="Add contacts to notify..."
|
|
context="{'force_email':True, 'show_email':True}"/>
|
|
</div>
|
|
<field name="subject" placeholder="Subject..." required="True"/>
|
|
</group>
|
|
<field name="body" options="{'style-inline': true}"/>
|
|
<group col="4">
|
|
<field name="attachment_ids" widget="many2many_binary" string="Attach a file" nolabel="1" colspan="2"/>
|
|
<field name="template_id" options="{'no_create': True}"
|
|
context="{'default_model': model, 'default_body_html': body, 'default_subject': subject}"/>
|
|
</group>
|
|
</div>
|
|
<footer>
|
|
<button string="Send & Print"
|
|
attrs="{'invisible': ['|', '|', ('is_log', '=', True), ('printed', '=', True), '|', ('is_email', '=', False), ('is_print', '=', False)]}"
|
|
name="send_and_print_action" type="object" class="btn-primary o_mail_send"/>
|
|
<button string="Send"
|
|
attrs="{'invisible': ['|', ('is_print', '=', True), ('is_email', '=', False)]}"
|
|
name="send_action" type="object" class="btn-primary o_mail_send"/>
|
|
<button string="Print"
|
|
attrs="{'invisible': ['|', '|', '|', ('is_log', '=', True), ('printed', '=', True), ('is_print', '=', False), ('is_email', '=', True)]}"
|
|
name="print_action" type="object" class="btn-primary o_mail_send"/>
|
|
<button string="Done" attrs="{'invisible': [('printed', '=', False)]}" special="cancel" class="btn-primary"/>
|
|
<button string="Cancel" class="btn-secondary" special="cancel" />
|
|
<button icon="fa-lg fa-save" type="object" name="save_as_template" string="Save as new template"
|
|
attrs="{'invisible': ['|', '|', '|', ('is_log', '=', True), ('printed', '=', True), ('is_email', '=', False)]}"
|
|
class="float-right btn-secondary" help="Save as a new template" />
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
|
|
</odoo>
|