Browse Source

[IMP][12.0] mail_attach_existing_attachment

pull/376/head
tbaden 5 years ago
parent
commit
f8c6550376
  1. 2
      mail_attach_existing_attachment/__manifest__.py
  2. 19
      mail_attach_existing_attachment/wizard/account_invoice_send_view.xml

2
mail_attach_existing_attachment/__manifest__.py

@ -32,10 +32,12 @@
'version': '12.0.1.0.0',
'license': 'AGPL-3',
'depends': [
'account',
'mail',
'document',
],
'data': [
'wizard/account_invoice_send_view.xml',
'wizard/mail_compose_message_view.xml',
],
'installable': True,

19
mail_attach_existing_attachment/wizard/account_invoice_send_view.xml

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="account_invoice_send_wizard_form" model="ir.ui.view">
<field name="name">Send Invoice</field>
<field name="model">account.invoice.send</field>
<field name="inherit_id" ref="account.account_invoice_send_wizard_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='attachment_ids']" position="after">
<field name="model" invisible="1"/>
<field name="res_id" invisible="1"/>
<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…
Cancel
Save