Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3475 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Jun 24
1302
8
Mar 19
5171
0
Mar 15
4905
2
Mar 15
12470
2
Agu 24
1420