Skip to content

Comments

account_invoice_export_ubl: show "Send Peppol" button on self-billing#12

Open
jbaudoux wants to merge 1 commit intoedido-eu:16.0from
jbaudoux:16-account_invoice_export_ubl-selfbilling
Open

account_invoice_export_ubl: show "Send Peppol" button on self-billing#12
jbaudoux wants to merge 1 commit intoedido-eu:16.0from
jbaudoux:16-account_invoice_export_ubl-selfbilling

Conversation

@jbaudoux
Copy link
Contributor

@jbaudoux jbaudoux commented Oct 27, 2025

string="Send Peppol"
type="object"
attrs="{'invisible':['|', '|', '|', ('transmit_method_code', '!=', 'peppol'), ('state', '!=', 'posted'), ('invoice_exported', '=', True), ('move_type', 'not in', ('out_invoice', 'out_refund'))]}"
attrs="{'invisible': ['|', '|', '|', ('transmit_method_code', '!=', 'peppol'), ('invoice_exported', '=', True), ('state', '!=', 'posted'), '&', ('move_type', 'not in', ['out_invoice', 'out_refund']), '|', ('move_type', 'not in', ['in_invoice', 'in_refund']), ('self_billing', '!=', True)]}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A computed field “is_peppol_export_invoice_allowed” could simplify the view. It could also serve as a prerequisite in the implementation of method.

@jbaudoux jbaudoux force-pushed the 16-account_invoice_export_ubl-selfbilling branch from e3bda17 to 267a006 Compare January 29, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants