تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3607 أدوات العرض

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
الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
يونيو 24
1448
8
مارس 19
5305
0
مارس 15
5044
2
مارس 15
12597
2
أغسطس 24
1599