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
- Comptabilitat
- Inventari
- PoS
- Project
- MRP
This question has been flagged
1
Respondre
3448
Vistes
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-seRelated Posts | Respostes | Vistes | Activitat | |
---|---|---|---|---|
|
0
de juny 24
|
1300 | ||
|
8
de març 19
|
5144 | ||
|
0
de març 15
|
4903 | ||
|
2
de març 15
|
12464 | ||
|
2
d’ag. 24
|
1414 |