-
-
Notifications
You must be signed in to change notification settings - Fork 588
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] mail_attach_existing_attachment: Migrated to 10.0
- Loading branch information
Showing
4 changed files
with
20 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 16 additions & 18 deletions
34
mail_attach_existing_attachment/wizard/mail_compose_message_view.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<openerp> | ||
<data noupdate="0"> | ||
<record model="ir.ui.view" id="email_compose_message_wizard_inherit_form"> | ||
<field name="name">mail.compose.message.form (mail_attach_existing_attachment)</field> | ||
<field name="model">mail.compose.message</field> | ||
<field name="inherit_id" ref="mail.email_compose_message_wizard_form"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='attachment_ids']" position="after"> | ||
<field name="can_attach_attachment" invisible="1"/> | ||
<div attrs="{'invisible': [('can_attach_attachment', '=', False)]}"> | ||
<br /> | ||
<field name="object_attachment_ids" widget="many2many_checkboxes" domain="[('res_model', '=', model), ('res_id', '=', res_id)]" /> | ||
</div> | ||
</xpath> | ||
</field> | ||
</record> | ||
</data> | ||
</openerp> | ||
<odoo> | ||
<record model="ir.ui.view" id="email_compose_message_wizard_inherit_form"> | ||
<field name="name">mail.compose.message.form (mail_attach_existing_attachment)</field> | ||
<field name="model">mail.compose.message</field> | ||
<field name="inherit_id" ref="mail.email_compose_message_wizard_form"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='attachment_ids']" position="after"> | ||
<field name="can_attach_attachment" invisible="1"/> | ||
<div attrs="{'invisible': [('can_attach_attachment', '=', False)]}"> | ||
<br /> | ||
<field name="object_attachment_ids" widget="many2many_checkboxes" domain="[('res_model', '=', model), ('res_id', '=', res_id)]" /> | ||
</div> | ||
</xpath> | ||
</field> | ||
</record> | ||
</odoo> |