Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3515 Vizualizări

hi all when i cancel a invoice with button ( cancel invoice ) action is  action_invoice_cancel, after build automatically draft invoice, how can i disable this ? i dont want build draft invoice after cancellation ?

Imagine profil
Abandonează
Cel mai bun răspuns

1- on xml file inherit "set_to_draft" button and replace attributes to invisible

<button name="action_invoice_draft"position="attributes">
        <attribute name="invisible">1</attribute>
</button>

2- you can also inherit the method which apply draft action

@api.multi
def action_invoice_draft(self):
    pass

I Hope this answer help you
Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
iun. 24
1353
8
mar. 19
5194
0
mar. 15
4951
2
mar. 15
12496
2
aug. 24
1453