You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.0 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2016 ACSONE SA/NV
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
  4. <openerp>
  5. <data>
  6. <record model="ir.ui.view" id="mail_compose_message_form_view">
  7. <field name="name">mail.compose.message.form (in mail_as_letter)</field>
  8. <field name="model">mail.compose.message</field>
  9. <field name="inherit_id" ref="mail.email_compose_message_wizard_form"/>
  10. <field name="arch" type="xml">
  11. <button name="send_mail_action" position="after">
  12. <field name="partner_count" attrs="{'invisible': True}"/>
  13. <button icon="fa-file-pdf-o"
  14. type="object"
  15. name="download_pdf"
  16. string="Download Letter"
  17. class="btn-default"
  18. help="Save as a PDF file"
  19. attrs="{'invisible': [('partner_count', '!=', 1)]}"/>
  20. </button>
  21. </field>
  22. </record>
  23. </data>
  24. </openerp>