Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

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

by
Le Filament, Rémi Cazenave
- 04/11/2025 13:57:40

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

Reference