[IMP] mail_attach_existing_attachment_account: black, isort, prettier

pull/797/head
Víctor Martínez 2021-11-11 11:53:59 +01:00
parent 14882fcae4
commit fae2f77eab
4 changed files with 28 additions and 23 deletions

View File

@ -2,21 +2,15 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': "Mail Attach Existing Attachment (Account)",
'summary': "Module to use attach existing attachment for account module",
'author': "Thore Baden, "
"Odoo Community Association (OCA)",
'website': "https://github.com/OCA/social",
'category': 'Social Network',
'version': '12.0.1.0.0',
'license': 'AGPL-3',
'depends': [
'account',
'mail_attach_existing_attachment',
],
'data': [
'wizard/account_invoice_send_view.xml',
],
'installable': True,
'auto_install': True,
"name": "Mail Attach Existing Attachment (Account)",
"summary": "Module to use attach existing attachment for account module",
"author": "Thore Baden, " "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/social",
"category": "Social Network",
"version": "12.0.1.0.0",
"license": "AGPL-3",
"depends": ["account", "mail_attach_existing_attachment",],
"data": ["wizard/account_invoice_send_view.xml",],
"installable": True,
"auto_install": True,
}

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2019 Thore Baden
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
@ -7,15 +7,19 @@
<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="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"/>
<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)]" />
<field
name="object_attachment_ids"
widget="many2many_checkboxes"
domain="[('res_model', '=', model), ('res_id', '=', res_id)]"
/>
</div>
</xpath>
</field>

View File

@ -0,0 +1 @@
../../../../mail_attach_existing_attachment_account

View File

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)