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
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
            
                1
                
                    Rispondi
                
            
        
        
            
                4158
                
                    Visualizzazioni
                
            
        
    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
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|  | 0 giu 24  | 2014 | ||
|  | 8 mar 19  | 5818 | ||
|  | 0 mar 15  | 5520 | ||
|  | 2 mar 15  | 13091 | ||
|  | 2 ago 24  | 2114 | 
