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 ?
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
            
                1
                
                    回覆
                
            
        
        
            
                4156
                
                    瀏覽次數
                
            
        
    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 6月 24  | 2011 | ||
|  | 8 3月 19  | 5818 | ||
|  | 0 3月 15  | 5518 | ||
|  | 2 3月 15  | 13090 | ||
|  | 2 8月 24  | 2114 | 
