[FIX] point_of_sale: bank statement opening balance

Only force computation of opening balance when cash control is enabled
This commit is contained in:
Christophe Simonis
2016-02-24 12:51:45 +01:00
parent 7e6a182e1e
commit 0718f807f0
+1 -1
View File
@@ -526,7 +526,7 @@ class pos_session(osv.osv):
# set the journal_id which should be used by
# account.bank.statement to set the opening balance of the
# newly created bank statement
context['journal_id'] = journal.id if journal.type == 'cash' else False
context['journal_id'] = journal.id if pos_config.cash_control and journal.type == 'cash' else False
st_values = {
'journal_id': journal.id,
'user_id': uid,