Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3527 Представления

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
Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
июн. 24
1374
8
мар. 19
5221
0
мар. 15
4958
2
мар. 15
12505
2
авг. 24
1471