As mail grows and will continue to grow, ordering views and having right files is important to understand module organization and content. Split main.py controller file into two files, one for mail related controllers (redirections) and one for discuss. Rename files according to guidelines for wizards and views. No functional change comes with this commit. This is only code move. Task-2631873 PR odoo/odoo#75571
31 lines
1.4 KiB
XML
31 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
|
|
<!-- wizard view -->
|
|
<record model="ir.ui.view" id="mail_wizard_invite_form">
|
|
<field name="name">Add Followers</field>
|
|
<field name="model">mail.wizard.invite</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Add Followers">
|
|
<group>
|
|
<field name="res_model" invisible="1"/>
|
|
<field name="res_id" invisible="1"/>
|
|
<field name="partner_ids" widget="many2many_tags_email"
|
|
placeholder="Add contacts to notify..."
|
|
context="{'force_email':True, 'show_email':True}"/>
|
|
<field name="send_mail"/>
|
|
<field name="message" attrs="{'invisible': [('send_mail','!=',True)]}" options="{'style-inline': true, 'no-attachment': true}" class="test_message"/>
|
|
</group>
|
|
<footer>
|
|
<button string="Add Followers"
|
|
name="add_followers" type="object" class="btn-primary" data-hotkey="q"/>
|
|
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z" />
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</odoo>
|