diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml
index 5e20c715342..07f7bf1c49e 100644
--- a/addons/account/account_invoice_view.xml
+++ b/addons/account/account_invoice_view.xml
@@ -324,18 +324,15 @@
search
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py
index f2df6dc139e..df2196585b2 100644
--- a/addons/account/account_move_line.py
+++ b/addons/account/account_move_line.py
@@ -282,6 +282,17 @@ class account_move_line(osv.osv):
result.append((line.id, line.name))
return result
+ def _balance_search(self, cursor, user, obj, name, args):
+ if not len(args):
+ return []
+ where = ' and '.join(map(lambda x: '(abs(sum(debit-credit))'+x[1]+str(x[2])+')',args))
+ cursor.execute('select id, sum(debit-credit) from account_move_line \
+ group by id,debit,credit having '+where)
+ res = cursor.fetchall()
+ if not len(res):
+ return [('id', '=', '0')]
+ return [('id', 'in', [x[0] for x in res])]
+
def _invoice_search(self, cursor, user, obj, name, args):
if not len(args):
return []
@@ -365,7 +376,7 @@ class account_move_line(osv.osv):
'date_created': fields.date('Creation date'),
'analytic_lines': fields.one2many('account.analytic.line', 'move_id', 'Analytic lines'),
'centralisation': fields.selection([('normal','Normal'),('credit','Credit Centralisation'),('debit','Debit Centralisation')], 'Centralisation', size=6),
- 'balance': fields.function(_balance, method=True, string='Balance'),
+ 'balance': fields.function(_balance, fnct_search=_balance_search, method=True, string='Balance'),
'state': fields.selection([('draft','Draft'), ('valid','Valid')], 'Status', readonly=True),
'tax_code_id': fields.many2one('account.tax.code', 'Tax Account', help="The Account can either be a base tax code or tax code account."),
'tax_amount': fields.float('Tax/Base Amount', digits=(16,2), select=True, help="If the Tax account is tax code account, this field will contain the taxed amount.If the tax account is base tax code,\
diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml
index 7dcfcc95475..d79ac0fd8ca 100644
--- a/addons/account/account_view.xml
+++ b/addons/account/account_view.xml
@@ -788,6 +788,25 @@
+
+
+ account.move.line.select
+ account.move.line
+ search
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Entry Lines
@@ -795,6 +814,18 @@
form
tree,form
+
+
+
+
+ Lines to reconcile
+ account.move.line
+ form
+ tree,form
+ [('account_id.reconcile', '=', True),('reconcile_id','=',False)]
+
+
+
+
+
+ Accounts to Renew
+ ir.actions.act_window
+ account.analytic.account
+ form
+ tree,form
+ [('date','<',time.strftime('%Y-%m-%d %H:%M:%S'))]
+
+
Analytic Chart of Accounts
@@ -150,6 +160,22 @@
+
+ account.analytic.line.select
+ account.analytic.line
+ search
+
+
+
+
+
+
+
+
+
+
+
+
Analytic Entries
ir.actions.act_window
@@ -169,6 +195,7 @@
tree,form
[('account_id','child_of',[active_id])]
{'account_id':active_id}
+
diff --git a/addons/account/project/wizard/wizard_account_analytic_line.py b/addons/account/project/wizard/wizard_account_analytic_line.py
index e868e6bbd9c..09a90955220 100644
--- a/addons/account/project/wizard/wizard_account_analytic_line.py
+++ b/addons/account/project/wizard/wizard_account_analytic_line.py
@@ -34,13 +34,18 @@ def _action_open_window(self, cr, uid, data, context):
domain = [('date','>=',from_date)]
elif to_date:
domain = [('date','<=',to_date)]
+ mod_obj = pooler.get_pool(cr.dbname).get('ir.model.data')
+ result = mod_obj._get_id(cr, uid, 'account', 'view_account_analytic_line_filter')
+ id = mod_obj.read(cr, uid, result, ['res_id'])
+
return {
'name': _('Analytic Entries'),
'view_type': 'form',
"view_mode": 'tree,form',
'res_model': 'account.analytic.line',
'type': 'ir.actions.act_window',
- 'domain': domain}
+ 'domain': domain,
+ 'search_view_id': id['res_id'],}
class account_analytic_line(wizard.interface):
diff --git a/addons/account/wizard/wizard_journal.py b/addons/account/wizard/wizard_journal.py
index 7a59a1188bc..b6a598416bd 100644
--- a/addons/account/wizard/wizard_journal.py
+++ b/addons/account/wizard/wizard_journal.py
@@ -64,6 +64,10 @@ def _action_open_window(self, cr, uid, data, context):
ids = jp.search(cr, uid, [('journal_id','=',form['journal_id']), ('period_id','=',form['period_id'])])
jp = jp.browse(cr, uid, ids, context=context)[0]
name = (jp.journal_id.code or '') + ':' + (jp.period_id.code or '')
+
+ mod_obj = pooler.get_pool(cr.dbname).get('ir.model.data')
+ result = mod_obj._get_id(cr, uid, 'account', 'view_account_move_line_filter')
+ id = mod_obj.read(cr, uid, result, ['res_id'])
return {
'domain': "[('journal_id','=',%d), ('period_id','=',%d)]" % (form['journal_id'],form['period_id']),
'name': name,
@@ -72,7 +76,8 @@ def _action_open_window(self, cr, uid, data, context):
'res_model': 'account.move.line',
'view_id': view_res,
'context': "{'journal_id':%d, 'period_id':%d}" % (form['journal_id'],form['period_id']),
- 'type': 'ir.actions.act_window'
+ 'type': 'ir.actions.act_window',
+ 'search_view_id': id['res_id']
}
class wiz_journal(wizard.interface):
diff --git a/addons/base_contact/base_contact_view.xml b/addons/base_contact/base_contact_view.xml
index 58650e3eed7..9fb957258be 100644
--- a/addons/base_contact/base_contact_view.xml
+++ b/addons/base_contact/base_contact_view.xml
@@ -33,14 +33,14 @@
-
-
+
+
-
+
@@ -79,7 +79,7 @@
-
+
@@ -92,12 +92,26 @@
+
+ res.partner.contact.search
+ res.partner.contact
+ search
+
+
+
+
+
+
+
+
+
Contacts
res.partner.contact
form
tree,form
+
@@ -168,6 +182,20 @@
+
+
+ res.partner.select
+ res.partner
+ search
+
+
+
+
+
+
+
+
+
@@ -319,7 +347,19 @@
-
+
+
+ res.partner.address.select
+ res.partner.address
+ search
+
+
+
+
+
+
+
+
res.partner.job.tree
diff --git a/addons/crm_configuration/crm_meeting_data.xml b/addons/crm_configuration/crm_meeting_data.xml
index 441cb45a0fc..086222c9f25 100644
--- a/addons/crm_configuration/crm_meeting_data.xml
+++ b/addons/crm_configuration/crm_meeting_data.xml
@@ -5,6 +5,7 @@
Meetings
Mtngs
+ True
diff --git a/addons/crm_configuration/crm_meeting_menu.xml b/addons/crm_configuration/crm_meeting_menu.xml
index 6a9bfb93848..c5d8f30a911 100755
--- a/addons/crm_configuration/crm_meeting_menu.xml
+++ b/addons/crm_configuration/crm_meeting_menu.xml
@@ -113,9 +113,6 @@
-
-
-
diff --git a/addons/crm_configuration/crm_meeting_view.xml b/addons/crm_configuration/crm_meeting_view.xml
index f3795aacdaa..67ed305e864 100755
--- a/addons/crm_configuration/crm_meeting_view.xml
+++ b/addons/crm_configuration/crm_meeting_view.xml
@@ -99,21 +99,20 @@
crm.case
search
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/addons/crm_configuration/crm_phonecall_view.xml b/addons/crm_configuration/crm_phonecall_view.xml
index 2e45b0e8cee..1a70b69ccf7 100644
--- a/addons/crm_configuration/crm_phonecall_view.xml
+++ b/addons/crm_configuration/crm_phonecall_view.xml
@@ -34,8 +34,8 @@
-
-
+
+
@@ -46,8 +46,6 @@
'default_partner_mobile':partner_mobile,'default_categ_id':categ_id}"/>
-
-
@@ -55,11 +53,14 @@
-
-
-
+
+
+
+
+
+
-
+
@@ -126,8 +127,8 @@
-
-
+
+
diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml
index 7e9ff90607d..7c54db176b1 100644
--- a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml
+++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml
@@ -176,14 +176,15 @@
-
-
-
+
+
+
+
diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml
index e5d54196622..b180dbcb076 100644
--- a/addons/mrp/mrp_view.xml
+++ b/addons/mrp/mrp_view.xml
@@ -525,15 +525,15 @@
search
-
-
-
-
-
-
+
+
+
-
+
+
+
+
@@ -748,12 +748,30 @@
+
+ mrp.procurement.select
+ mrp.procurement
+ search
+
+
+
+
+
+
+
+
+
+
+
+
+
Procurement Orders
ir.actions.act_window
mrp.procurement
form
+
@@ -784,6 +802,7 @@
form
tree,form
[('state','=','exception'), ('message', '<>', '')]
+
diff --git a/addons/product/product_view.xml b/addons/product/product_view.xml
index 7b55f92dcf8..0e8f53e97f8 100644
--- a/addons/product/product_view.xml
+++ b/addons/product/product_view.xml
@@ -16,10 +16,17 @@
search
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/addons/project/project.py b/addons/project/project.py
index b9488a86cb9..96e86b4153c 100644
--- a/addons/project/project.py
+++ b/addons/project/project.py
@@ -300,6 +300,7 @@ class task(osv.osv):
'delegated_user_id': fields.related('child_ids','user_id',type='many2one', relation='res.users', string='Delegated To'),
'partner_id': fields.many2one('res.partner', 'Partner'),
'work_ids': fields.one2many('project.task.work', 'task_id', 'Work done'),
+ 'manager_id': fields.related('project_id','manager', type='many2one', relation='res.users', string='Project Manager')
}
_defaults = {
'user_id': lambda obj,cr,uid,context: uid,
diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml
index 48ad064a7d5..792871a6606 100644
--- a/addons/project/project_view.xml
+++ b/addons/project/project_view.xml
@@ -12,13 +12,11 @@
form