mirror of https://github.com/OCA/social.git
[MIG] mail_attach_existing_attachment: Migrated to 10.0
parent
5772b2f0e6
commit
f58cefa1fd
|
@ -31,7 +31,7 @@ To configure this module, you need to:
|
|||
|
||||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
|
||||
:alt: Try me on Runbot
|
||||
:target: https://runbot.odoo-community.org/runbot/205/9.0
|
||||
:target: https://runbot.odoo-community.org/runbot/205/10.0
|
||||
|
||||
Known issues / Roadmap
|
||||
======================
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
"Odoo Community Association (OCA)",
|
||||
'website': "http://acsone.eu",
|
||||
'category': 'Social Network',
|
||||
'version': '9.0.1.0.0',
|
||||
'version': '10.0.1.0.0',
|
||||
'license': 'AGPL-3',
|
||||
'depends': [
|
||||
'mail',
|
||||
|
@ -40,5 +40,5 @@
|
|||
'data': [
|
||||
'wizard/mail_compose_message_view.xml',
|
||||
],
|
||||
'installable': False,
|
||||
'installable': True,
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#
|
||||
##############################################################################
|
||||
|
||||
from openerp import models, fields, api
|
||||
from odoo import models, fields, api
|
||||
|
||||
|
||||
class MailComposeMessage(models.TransientModel):
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue