Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3645 มุมมอง

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 ?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มิ.ย. 24
1478
8
มี.ค. 19
5335
0
มี.ค. 15
5089
2
มี.ค. 15
12633
2
ส.ค. 24
1631