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.

22 lines
1020 B

  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. <odoo>
  5. <record id="mail_compose_message_form_view" model="ir.ui.view">
  6. <field name="name">mail.compose.message.form (in mail_as_letter)</field>
  7. <field name="model">mail.compose.message</field>
  8. <field name="inherit_id" ref="mail.email_compose_message_wizard_form"/>
  9. <field name="arch" type="xml">
  10. <button name="send_mail_action" position="after">
  11. <field name="partner_count" attrs="{'invisible': True}"/>
  12. <button icon="fa-file-pdf-o"
  13. type="object"
  14. name="download_pdf"
  15. string="Download Letter"
  16. class="btn-default"
  17. help="Save as a PDF file"
  18. attrs="{'invisible': [('partner_count', '!=', 1)]}"/>
  19. </button>
  20. </field>
  21. </record>
  22. </odoo>