Odoo Help


Delete invoice at cancel it

Adnier Rosello
on 10/11/16, 6:45 PM 1,397 views


I want to know if its possible, delete an invoice when I excecute the action_cancel() method in "act_cancel" workflow.activity, I tried to do that but I got this error: 

File "/home/zabyca/workspace/eclipse/odoo9/openerp/workflow/instance.py", line 75, in _update_end wkf_id = cr.fetchone()[0]TypeError: 'NoneType' object has no attribute '__getitem__'



Bejaoui Souheil

--Bejaoui Souheil--
--Bejaoui Souheil--

Odoo developer,  functional and technical consultant


Bejaoui Souheil
On 10/12/16, 3:03 AM


If an invoice is validated, you are not allowed to delete it even after cancel action.

The answer in this question may help you.

Best regards.

Hi, I forgot say in the post that the invoice that I want delete, is in draft state, thanks

Adnier Rosello
on 10/12/16, 11:44 AM

if it is validated even after its cancellation, Odoo does not allow you to delete it.

do it directly from the DATABASE.

Bejaoui Souheil
on 10/12/16, 4:23 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 10/11/16, 6:45 PM
Seen: 1397 times
Last updated: 10/12/16, 3:03 AM