Add issue5891.diff

[stock] - Allow using view locations in cancelled stock moves
This commit is contained in:
Raimon Esteve 2017-07-17 11:00:12 +02:00
parent 8711d1780b
commit 48a69524b6
2 changed files with 13 additions and 0 deletions

12
issue5891.diff Normal file
View File

@ -0,0 +1,12 @@
diff -r 4baea2cb67f2 trytond/trytond/modules/stock/move.py
--- a/trytond/trytond/modules/stock/move.py Mon Jul 17 10:51:41 2017 +0200
+++ b/trytond/trytond/modules/stock/move.py Mon Jul 17 10:52:03 2017 +0200
@@ -28,7 +28,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'])),
]

1
series
View File

@ -55,3 +55,4 @@ issue5917.diff # [tryton] - Reduce the number of request for tree_state (changes
issue5877.diff # [trytond] - Improve ModelStorage.search_count by using no order and COUNT(*) (changeset a2009809c10f)
statement_of_account.diff # [account] - remove context and show all lines on general_ledger_lines
issue6371.diff # [stock] - Do not set effective_date on assign
issue5891.diff # [stock] - Allow using view locations in cancelled stock moves