diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py
index 375f772e05d..5878253d82c 100644
--- a/addons/account/account_move_line.py
+++ b/addons/account/account_move_line.py
@@ -52,9 +52,9 @@ class account_move_line(osv.osv):
if context.get('periods', False):
ids = ','.join([str(x) for x in context['periods']])
- return obj+".active AND "+obj+".state<>'draft' AND "+obj+".period_id in (SELECT id from account_period WHERE fiscalyear_id in (%s) AND id in (%s)) %s" % (fiscalyear_clause, ids,where_move_state)
+ return obj+".state<>'draft' AND "+obj+".period_id in (SELECT id from account_period WHERE fiscalyear_id in (%s) AND id in (%s)) %s" % (fiscalyear_clause, ids,where_move_state)
else:
- return obj+".active AND "+obj+".state<>'draft' AND "+obj+".period_id in (SELECT id from account_period WHERE fiscalyear_id in (%s) %s)" % (fiscalyear_clause,where_move_state)
+ return obj+".state<>'draft' AND "+obj+".period_id in (SELECT id from account_period WHERE fiscalyear_id in (%s) %s)" % (fiscalyear_clause,where_move_state)
def default_get(self, cr, uid, fields, context={}):
data = self._default_get(cr, uid, fields, context)
@@ -157,7 +157,7 @@ class account_move_line(osv.osv):
for id in ids:
cr.execute('SELECT date,account_id FROM account_move_line WHERE id=%d', (id,))
dt, acc = cr.fetchone()
- cr.execute('SELECT SUM(debit-credit) FROM account_move_line WHERE account_id=%d AND (date<%s OR (date=%s AND id<=%d)) and active', (acc,dt,dt,id))
+ cr.execute('SELECT SUM(debit-credit) FROM account_move_line WHERE account_id=%d AND (date<%s OR (date=%s AND id<=%d))', (acc,dt,dt,id))
res[id] = cr.fetchone()[0]
return res
diff --git a/addons/board_crm_configuration/board_crm_demo.xml b/addons/board_crm_configuration/board_crm_demo.xml
index f6c4a233cd0..39bc1f289f5 100644
--- a/addons/board_crm_configuration/board_crm_demo.xml
+++ b/addons/board_crm_configuration/board_crm_demo.xml
@@ -6,13 +6,13 @@
Administrator shortcut
Demo user startup menu
-->
-
+
diff --git a/addons/crm_vertical/crm_vertical_view.xml b/addons/crm_vertical/crm_vertical_view.xml
index 3c5b0356b4b..32a47904ff6 100644
--- a/addons/crm_vertical/crm_vertical_view.xml
+++ b/addons/crm_vertical/crm_vertical_view.xml
@@ -15,7 +15,7 @@
-
@@ -66,7 +66,7 @@
Confirm Operations
ir.actions.act_window
mrp.production.workcenter.line
- tree
+ form
tree,form
[('state','=','confirm')]
@@ -77,7 +77,7 @@
Draft Operations
ir.actions.act_window
mrp.production.workcenter.line
- tree
+ form
tree,form
[('state','=','draft')]