diff --git a/addons/account/invoice.py b/addons/account/invoice.py
index fb25b7b8f02..5887613940c 100644
--- a/addons/account/invoice.py
+++ b/addons/account/invoice.py
@@ -860,6 +860,9 @@ class account_invoice(osv.osv):
self.pool.get('account.move.line').reconcile(cr, uid, line_ids, 'manual', writeoff_acc_id, writeoff_period_id, writeoff_journal_id, context)
else:
self.pool.get('account.move.line').reconcile_partial(cr, uid, line_ids, 'manual', context)
+
+ # Update the stored value
+ self.pool.get('account.invoice').write(cr, uid, ids, {}, context=context)
return True
account_invoice()
diff --git a/addons/analytic_journal_billing_rate/analytic_journal_billing_rate_view.xml b/addons/analytic_journal_billing_rate/analytic_journal_billing_rate_view.xml
index 0927251dfcb..cc5219efb30 100644
--- a/addons/analytic_journal_billing_rate/analytic_journal_billing_rate_view.xml
+++ b/addons/analytic_journal_billing_rate/analytic_journal_billing_rate_view.xml
@@ -34,7 +34,7 @@
form
-
+
diff --git a/addons/analytic_journal_billing_rate/security/ir.model.access.csv b/addons/analytic_journal_billing_rate/security/ir.model.access.csv
index cf13af205ba..0b03709a81b 100644
--- a/addons/analytic_journal_billing_rate/security/ir.model.access.csv
+++ b/addons/analytic_journal_billing_rate/security/ir.model.access.csv
@@ -1,4 +1,4 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
-"access_analytic_journal_rate_user","analytic journal rate user","model_analytic_journal_rate_grid","project.group_project_user",1,0,0,0
-"access_analytic_journal_rate_manager","analytic journal rate manager","model_analytic_journal_rate_grid","project.group_project_manager",1,1,1,1
+"access_analytic_journal_rate_user","analytic journal rate user","model_analytic_journal_rate_grid","account.group_account_manager",1,0,0,0
+"access_analytic_journal_rate_manager","analytic journal rate manager","model_analytic_journal_rate_grid","account.group_account_manager",1,1,1,1
"access_analytic_journal_rate_account_manager","analytic journal rateaccount manager","model_analytic_journal_rate_grid","account.group_account_manager",1,1,1,1
diff --git a/addons/analytic_user_function/security/ir.model.access.csv b/addons/analytic_user_function/security/ir.model.access.csv
index b2fb45404e8..0c9c12e0a04 100644
--- a/addons/analytic_user_function/security/ir.model.access.csv
+++ b/addons/analytic_user_function/security/ir.model.access.csv
@@ -1,4 +1,4 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
-"access_analytic_user_funct_user","analytic user funct user","model_analytic_user_funct_grid","project.group_project_user",1,0,0,0
-"access_analytic_user_funct_manager","analytic user funct manager","model_analytic_user_funct_grid","project.group_project_manager",1,1,1,1
+"access_analytic_user_funct_user","analytic user funct user","model_analytic_user_funct_grid","account.group_account_manager",1,0,0,0
+"access_analytic_user_funct_manager","analytic user funct manager","model_analytic_user_funct_grid","account.group_account_manager",1,1,1,1
"access_analytic_user_funct_account_manager","analytic user funct account manager","model_analytic_user_funct_grid","account.group_account_manager",1,1,1,1
diff --git a/addons/base_module_quality/method_test/__init__.py b/addons/base_module_quality/method_test/__init__.py
new file mode 100644
index 00000000000..79850888f41
--- /dev/null
+++ b/addons/base_module_quality/method_test/__init__.py
@@ -0,0 +1,24 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (). All Rights Reserved
+# $Id$
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/base_module_quality/method_test/method_test.py b/addons/base_module_quality/method_test/method_test.py
new file mode 100644
index 00000000000..84f3f167247
--- /dev/null
+++ b/addons/base_module_quality/method_test/method_test.py
@@ -0,0 +1,82 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (). All Rights Reserved
+# $Id$
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+
+import os
+from tools import config
+
+from base_module_quality import base_module_quality
+import pooler
+
+class quality_test(base_module_quality.abstract_quality_check):
+
+ def __init__(self):
+ self.result = """
+Method Test:
+------------
+
+ This test checks if the class method has exception or not.
+
+
+"""
+ self.bool_installed_only = False
+ return None
+
+ def run_test(self, module_path, module_name=None, cr=None, uid=None):
+ pool = pooler.get_pool(cr.dbname)
+ ids2 = pool.get('ir.model.data').search(cr, uid, [('module','=', module_name), ('model','=','ir.model')])
+ obj_list = []
+ for mod in pool.get('ir.model.data').browse(cr, uid, ids2):
+ object_name = mod.name.split('_')
+ object_name.pop(0)
+ object_name = '.'.join(object_name)
+ obj_list.append(str(object_name))
+ result={}
+ self.result += "Module Name:" + module_name + '\n' + '===============\n'
+ for obj in obj_list:
+ temp=[]
+ try:
+ res = pool.get(obj).search(cr, uid, [])
+ temp.append('Ok')
+ except:
+ temp.append('Exception')
+ try:
+ res1 = pool.get(obj).fields_view_get(cr, uid,)
+ temp.append('Ok')
+ except:
+ temp.append('Exception')
+ try:
+ res2 = pool.get(obj).read(cr, uid, [])
+ temp.append('Ok')
+ except:
+ temp.append('Exception')
+ result[obj] = temp
+ self.result+=("%-40s %-12s \t %-16s %-12s")%('Object Name'.ljust(40),'search','fields_view_get','read')
+ self.result+='\n'
+ for res in result:
+ self.result+=("%-40s %-12s \t %-16s \t %-12s")%(res.ljust(40),result[res][0],result[res][1],result[res][2])
+ self.result+="\n"
+ return None
+
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+
diff --git a/addons/base_module_quality/wizard/module_quality_check.py b/addons/base_module_quality/wizard/module_quality_check.py
index 9a5ec9391dd..da067551e6d 100644
--- a/addons/base_module_quality/wizard/module_quality_check.py
+++ b/addons/base_module_quality/wizard/module_quality_check.py
@@ -30,29 +30,17 @@ import os
#TODO: configure pylint
#TODO: implement the speed test
#TODO: implement the simple test
-#TODO: add cheks: do the class quality_check inherits the class abstract_quality_check?
+#TODO: add cheks: do the class quality_check inherits the class abstract_quality_check?
#TODO: improve translability
#To keep or not? to be discussed...
-#~ form_check = '''
-#~ '''
-
-#~ fields_check = {
- #~ 'test': {
- #~ 'string':'Tests', 'type':'selection', 'required':True,
- #~ 'selection': [('pylint', 'Pylint'), ('othertest','other')],
- #~ 'default': lambda *args: 'pylint'
- #~ },
- #~ }
view_form = """
"""
@@ -71,8 +59,8 @@ class wiz_quality_check(wizard.interface):
from tools import config
pool = pooler.get_pool(cr.dbname)
module_data = pool.get('ir.module.module').browse(cr, uid, data['ids'])
-
list_folders = os.listdir(config['addons_path']+'/base_module_quality/')
+ module_name = module_data[0].name
for item in list_folders:
path = config['addons_path']+'/base_module_quality/'+item
if os.path.exists(path+'/'+item+'.py') and item not in ['report', 'wizard', 'security']:
@@ -83,18 +71,16 @@ class wiz_quality_check(wizard.interface):
x2 = getattr(x, item)
x3 = getattr(x2, item)
val = x3.quality_test()
- if not val.bool_installed_only or module_data[0].state == "installed":
+ if (not val.bool_installed_only or module_data[0].state == "installed") and item == 'method_test':
+ val.run_test(str(module_path), module_name, cr, uid)
+ elif not val.bool_installed_only or module_data[0].state == "installed" :
val.run_test(str(module_path))
else:
val.result += "The module has to be installed before running this test."
-
string_ret += val.result
- print val.result_details
return {'general_info':string_ret}
-
-
states = {
#To keep or not? to be discussed...
@@ -107,8 +93,8 @@ class wiz_quality_check(wizard.interface):
'actions': [_check],
'result': {'type':'form', 'arch':view_form, 'fields':view_field, 'state':[('end','Ok')]},
},
+ }
- }
wiz_quality_check('base.module.quality')
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/board/board_view.xml b/addons/board/board_view.xml
index 138f75aa676..e196f5cc682 100644
--- a/addons/board/board_view.xml
+++ b/addons/board/board_view.xml
@@ -87,7 +87,8 @@
id="next_id_50"
name="Configuration"
parent="board.dashboard_menu"
- groups="base.group_system"/>
+ groups="base.group_system"
+ sequence="0"/>
-
+
+ Point of Sale
+ ir.actions.act_window
+ pos.order
+ form
+
+ [ ('date_order','>=',time.strftime('%Y-%m-%d')) ]
+
-
- Point of Sale
- ir.actions.act_window
- pos.order
- form
-
- [ ('date_order','>=',time.strftime('%Y-%m-%d')) ]
-
+
+ Sales
+ pos.order
+ tree
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Point of Sale
+ ir.actions.act_window
+ pos.order
+ form
+ tree,form
+
+ [('date_order','=', time.strftime('%Y-%m-%d'))]
+
+
+
+
+
+ Point of Sale
+ ir.actions.act_window
+ pos.order
+ form
+ tree,form
+
+
+
-
- Sales
- pos.order
- tree
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ Sale lines
+ pos.order.line
+ tree
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+ Sale line
+ pos.order.line
+ form
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+ Sale line
+ ir.actions.act_window
+ pos.order.line
+ form
+ tree
+
+
+
-
- Point of Sale
- ir.actions.act_window
- pos.order
- form
- tree,form
-
- [('date_order','=', time.strftime('%Y-%m-%d'))]
-
-
-
-
-
- Point of Sale
- ir.actions.act_window
- pos.order
- form
- tree,form
-
-
-
+
+ Sale line
+ ir.actions.act_window
+ pos.order.line
+ form
+ tree
+
+ [('create_date','like',time.strftime('%Y-%m-%d'))]
+
+
-
- Sale lines
- pos.order.line
- tree
-
-
-
-
-
-
-
-
-
-
-
+
-
- Sale line
- pos.order.line
- form
-
-
-
-
-
-
-
-
-
-
-
-
-
- Sale line
- ir.actions.act_window
- pos.order.line
- form
- tree
-
-
-
-
-
- Sale line
- ir.actions.act_window
- pos.order.line
- form
- tree
-
- [('create_date','like',time.strftime('%Y-%m-%d'))]
-
-
+
+ report.trans.pos.user.form
+ report.transaction.pos
+ form
+
+