Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
3535 Vues

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 ?

Avatar
Ignorer
Meilleure réponse

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
Avatar
Ignorer
Publications associées Réponses Vues Activité
0
juin 24
1389
8
mars 19
5231
0
mars 15
4964
2
mars 15
12515
2
août 24
1489