[FIX] stock_account: purchase and sale_refund are two different journal type

When creating an incoming shipment to be invoiced with as source location
"Transit"
and as destination location
"Stock"

Clicking on create invoice leaded to a crash.

opw-639536
This commit is contained in:
Denis Ledoux 2015-05-28 11:04:22 +02:00
parent 9fe2e04c0d
commit fff4215933
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ JOURNAL_TYPE_MAP = {
('outgoing', 'transit'): ['sale', 'purchase_refund'],
('incoming', 'supplier'): ['purchase'],
('incoming', 'customer'): ['sale_refund'],
('incoming', 'transit'): ['purchase, sale_refund'],
('incoming', 'transit'): ['purchase', 'sale_refund'],
}