Add issue5891.diff - [stock] - Allow using view locations in cancelled stock moves

This commit is contained in:
Raimon Esteve 2017-07-17 10:48:48 +02:00
parent dd7850a05c
commit 6230f5a632
2 changed files with 14 additions and 0 deletions

12
issue5891.diff Normal file
View File

@ -0,0 +1,12 @@
diff -r cded732515e0 trytond/trytond/modules/stock/move.py
--- a/trytond/trytond/modules/stock/move.py Mon Jul 17 10:43:57 2017 +0200
+++ b/trytond/trytond/modules/stock/move.py Mon Jul 17 10:45:44 2017 +0200
@@ -27,7 +27,7 @@
}
DEPENDS = ['state']
LOCATION_DOMAIN = [
- If(Eval('state').in_(['staging', 'draft']),
+ If(Eval('state').in_(['staging', 'draft', 'cancel']),
('type', 'not in', ['warehouse']),
('type', 'not in', ['warehouse', 'view'])),
]

2
series
View File

@ -70,3 +70,5 @@ issue5254.diff
add_account_in_move_line_payable_receivable.diff
issue6605.diff
issue5453.diff
issue5891.diff # [stock] - Allow using view locations in cancelled stock moves