[stock] Cannot cancel a picking without moves from source
Bug #645930 reported by
Omar (Pexego)
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) | Status tracked in Trunk | |||||
5.0 |
Fix Released
|
Undecided
|
JMA(Open ERP) | |||
Trunk |
Fix Released
|
Undecided
|
JMA(Open ERP) |
Bug Description
Hi,
My picking is in assigned state and it hasn't moves.
I want to cancel this picking. From gtk client or web client, I press button_cancel and it works but from source using trg_validate(uid, 'stock.picking', id, 'button_cancel', cr) it can not cancel because it call test_cancel() function, in this function executes this statement:
if not pick.move_lines:
return False
It should return 'True' because not has sense that if no lines in picking it returns False, avoid cancel from source.
I include the patch.
Changed in openobject-addons: | |
assignee: | nobody → JMA(Open ERP) (jma-openerp) |
status: | New → Confirmed |
To post a comment you must log in.
Hello Omar (Pexego),
Would you please review the attached patch?
It also resolves the issue.
Thanks for bringing this into notice.