Skip to Content
Menu
This question has been flagged
4 Replies
4658 Views

Hello,

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__'


Greetings


Avatar
Discard
Best Answer

Hi,

set move_name to Flase by mass edit.

Avatar
Discard
Best Answer

Hi,

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.

Avatar
Discard
Author

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

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

do it directly from the DATABASE.

Related Posts Replies Views Activity
2
Nov 24
271
1
Oct 24
335
4
Oct 24
326
2
Oct 24
362
2
Dec 24
673