Browse Source

Merge pull request #100 from dbo-odoo/10.0-mig-mail_as_letter

[MIG] mail_as_letter: Migrated to 10.0
pull/109/head
Rafael Blasco 8 years ago
committed by GitHub
parent
commit
72eec2b8cf
  1. 2
      mail_as_letter/README.rst
  2. 4
      mail_as_letter/__manifest__.py
  3. 8
      mail_as_letter/report/mail_as_letter_qweb.xml
  4. 4
      mail_as_letter/wizards/mail_compose_message.py
  5. 11
      mail_as_letter/wizards/mail_compose_message.xml

2
mail_as_letter/README.rst

@ -18,7 +18,7 @@ To use this module, you need to:
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot :alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/{repo_id}/{branch}
:target: https://runbot.odoo-community.org/runbot/205/10.0
.. repo_id is available in https://github.com/OCA/maintainer-tools/blob/master/tools/repos_with_ids.txt .. repo_id is available in https://github.com/OCA/maintainer-tools/blob/master/tools/repos_with_ids.txt
.. branch is "8.0" for example .. branch is "8.0" for example

4
mail_as_letter/__manifest__.py

@ -6,7 +6,7 @@
'name': 'Mail As Letter', 'name': 'Mail As Letter',
'summary': """ 'summary': """
This module allows to download a mail message as a pdf letter.""", This module allows to download a mail message as a pdf letter.""",
'version': '9.0.1.0.0',
'version': '10.0.1.0.0',
'license': 'AGPL-3', 'license': 'AGPL-3',
'author': 'ACSONE SA/NV,Odoo Community Association (OCA)', 'author': 'ACSONE SA/NV,Odoo Community Association (OCA)',
'website': 'www.acsone.eu', 'website': 'www.acsone.eu',
@ -19,5 +19,5 @@
], ],
'demo': [ 'demo': [
], ],
'installable': False,
'installable': True,
} }

8
mail_as_letter/report/mail_as_letter_qweb.xml

@ -1,7 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<odoo>
<record id="qweb_mail_pdf_export" model="ir.actions.report.xml"> <record id="qweb_mail_pdf_export" model="ir.actions.report.xml">
<field name="name">mail_as_letter</field> <field name="name">mail_as_letter</field>
<field name="model">mail.compose.message</field> <field name="model">mail.compose.message</field>
@ -43,6 +41,4 @@
</t> </t>
</t> </t>
</template> </template>
</data>
</openerp>
</odoo>

4
mail_as_letter/wizards/mail_compose_message.py

@ -2,8 +2,8 @@
# Copyright 2016 ACSONE SA/NV # Copyright 2016 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import api, fields, models, _
from openerp.exceptions import UserError
from odoo import api, fields, models, _
from odoo.exceptions import UserError
class MailComposeMessage(models.TransientModel): class MailComposeMessage(models.TransientModel):

11
mail_as_letter/wizards/mail_compose_message.xml

@ -1,11 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2016 ACSONE SA/NV <!-- Copyright 2016 ACSONE SA/NV
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<openerp>
<data>
<record model="ir.ui.view" id="mail_compose_message_form_view">
<odoo>
<record id="mail_compose_message_form_view" model="ir.ui.view">
<field name="name">mail.compose.message.form (in mail_as_letter)</field> <field name="name">mail.compose.message.form (in mail_as_letter)</field>
<field name="model">mail.compose.message</field> <field name="model">mail.compose.message</field>
<field name="inherit_id" ref="mail.email_compose_message_wizard_form"/> <field name="inherit_id" ref="mail.email_compose_message_wizard_form"/>
@ -22,6 +19,4 @@
</button> </button>
</field> </field>
</record> </record>
</data>
</openerp>
</odoo>
Loading…
Cancel
Save