Skip to content

[Question] account_billing: why is the related invoices button only visible in billed state? #2311

@AungKoKoLin1997

Description

@AungKoKoLin1997

I’m wondering why this button in the billing form view is only visible in the billed state:

<button
class="oe_stat_button"
name="invoice_relate_billing_tree_view"
type="object"
invisible="state != 'billed'"
icon="fa-pencil-square-o"
>
<field
name="invoice_related_count"
string="Invoices"
widget="statinfo"
/>
</button>

It seems this button could also be useful in the draft state, to allow users to view the related invoices.

@qrtl QT6560

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions