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:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
            
                1
                
                    Odpowiedz
                
            
        
        
            
                4165
                
                    Widoki
                
            
        
    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
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|  | 0 cze 24  | 2020 | ||
|  | 8 mar 19  | 5823 | ||
|  | 0 mar 15  | 5522 | ||
|  | 2 mar 15  | 13092 | ||
|  | 2 sie 24  | 2124 | 
