Skip to Content

Contributors

Help understanding “Send by Email” button visibility on invoices V18

Hi everyone,


I’m trying to understand why the “Send by Email” button doesn’t appear on my bills — it stays invisible regardless of their status.

I’ve checked the technical condition in the code (state != 'posted' or is_being_sent or invoice_pdf_report_id or move_type not in ('out_invoice', 'out_refund')), but I’d like to understand the functional logic — what needs to be configured in Odoo to make it visible in the standard flow?


I managed to make the “Send by Email” button visible, but I’m now facing a blocking message: “You can only generate sales documents.”

This action used to work in previous Odoo versions (it’s part of a self-billing process).


Do you have any recommendations or know if there’s a module or standard approach for handling this in Odoo 18?


Thanks in advance for your help,

Nazaire


(Odoo version: 18)

by Nazaire ADJAKOUN - 10:21 - 28 Oct 2025

Follow-Ups

  • Re: Help understanding “Send by Email” button visibility on invoices V18

    Hi Nazaire,

    The button (and action behind) only makes sense for Customer invoices (and refunds), which is why it is not visible for Supplier Bills (because of the move_type not in ('out_invoice', 'out_refund')).

    You are supposed to receive supplier bills from your supplier, adding them in Odoo is useful for margin analysis, payment follow-up, accounting, etc. but it does not make sense to send Supplier Bill with Odoo format back to Supplier (at least in normal workflow).

    Best Regards,

    Rémi

    Le 28/10/2025 à 22:22, Nazaire ADJAKOUN a écrit :

    Hi everyone,


    I’m trying to understand why the “Send by Email” button doesn’t appear on my bills — it stays invisible regardless of their status.

    I’ve checked the technical condition in the code (state != 'posted' or is_being_sent or invoice_pdf_report_id or move_type not in ('out_invoice', 'out_refund')), but I’d like to understand the functional logic — what needs to be configured in Odoo to make it visible in the standard flow?


    I managed to make the “Send by Email” button visible, but I’m now facing a blocking message: “You can only generate sales documents.”

    This action used to work in previous Odoo versions (it’s part of a self-billing process).


    Do you have any recommendations or know if there’s a module or standard approach for handling this in Odoo 18?


    Thanks in advance for your help,

    Nazaire


    (Odoo version: 18)

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Rémi Cazenave - 02:06 - 4 Nov 2025
  • Re: Help understanding “Send by Email” button visibility on invoices V18
    Hello

    I think you might ask the question to Odoo's forum as it looks like a general Odoo question.
    But if you think it's related to an OCA module, then it's better to create an issue in the right github's repo 

    You might test on runbot.odoo.com for standard odoo or on runboat that you can find in any OCA'a repo.

    Best regards

    --------------------------------
    Cyril VINH-TUNG
    INVITU
    Computer & Network Engineering
    BP 32 - 98713 Papeete - French Polynesia
    Tél: +689 40 46 11 99
    contact@invitu.com
    www.invitu.com

    Le mar. 28 oct. 2025, 11:22, Nazaire ADJAKOUN <notifications@odoo-community.org> a écrit :

    Hi everyone,


    I’m trying to understand why the “Send by Email” button doesn’t appear on my bills — it stays invisible regardless of their status.

    I’ve checked the technical condition in the code (state != 'posted' or is_being_sent or invoice_pdf_report_id or move_type not in ('out_invoice', 'out_refund')), but I’d like to understand the functional logic — what needs to be configured in Odoo to make it visible in the standard flow?


    I managed to make the “Send by Email” button visible, but I’m now facing a blocking message: “You can only generate sales documents.”

    This action used to work in previous Odoo versions (it’s part of a self-billing process).


    Do you have any recommendations or know if there’s a module or standard approach for handling this in Odoo 18?


    Thanks in advance for your help,

    Nazaire


    (Odoo version: 18)

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Cyril VINH-TUNG - 06:31 - 29 Oct 2025