diff --git a/addons/account/account.py b/addons/account/account.py index b050f43ad4e..5fc97a13697 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1027,6 +1027,33 @@ class account_move(osv.osv): _description = "Account Entry" _order = 'id desc' + def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=80): + """ + Returns a list of tupples containing id, name, as internally it is called {def name_get} + result format : {[(id, name), (id, name), ...]} + + @param cr: A database cursor + @param user: ID of the user currently logged in + @param name: name to search + @param args: other arguments + @param operator: default operator is 'ilike', it can be changed + @param context: context arguments, like lang, time zone + @param limit: Returns first 'n' ids of complete result, default is 80. + + @return: Returns a list of tupples containing id and name + """ + + if not args: + args=[] + if not context: + context={} + ids = [] + + if name: + ids += self.search(cr, user, [('state','=','draft'), ('id','=',name)], limit=limit) + + return self.name_get(cr, user, ids, context=context) + def name_get(self, cursor, user, ids, context=None): if not len(ids): return [] @@ -2205,7 +2232,6 @@ class account_add_tmpl_wizard(osv.osv_memory): def _get_def_cparent(self, cr, uid, context): acc_obj=self.pool.get('account.account') tmpl_obj=self.pool.get('account.account.template') - #print "Searching for ",context tids=tmpl_obj.read(cr, uid, [context['tmpl_ids']], ['parent_id']) if not tids or not tids[0]['parent_id']: return False @@ -2247,7 +2273,6 @@ class account_add_tmpl_wizard(osv.osv_memory): # 'tax_ids': [(6,0,tax_ids)], todo!! 'company_id': company_id, } - # print "Creating:", vals new_account = acc_obj.create(cr, uid, vals) return {'type':'state', 'state': 'end' } diff --git a/addons/account/account_installer.xml b/addons/account/account_installer.xml index 479f9bf1c65..5b57ab130fd 100644 --- a/addons/account/account_installer.xml +++ b/addons/account/account_installer.xml @@ -1,14 +1,14 @@ - - account.installer.view + + account.installer.form account.installer form
- Accounting Modules Installation + Accounting System Configuration
@@ -54,37 +54,79 @@ - - - - - - - - -
- - Accounting Modules Installation + + account.installer.modules.form + account.installer.modules + form + + + +
+ Extra Accounting Modules Installation +
+ + Install Extra Accounting Modules In Your Accounting System + + + From this screen, you can install extra accounting modules in your accounting system. Select the modules to directly install them. If you do not think you need any of these right now, you can easily install them later. + + + 23 + + + + + + + + + + + +
+
+
+ + + Accounting Chart Configuration ir.actions.act_window account.installer - + form form new - - + + Accounting Modules Installation + ir.actions.act_window + account.installer.modules + + form + form + new + + + + 3 onskip + + + 5 + always + + ir.actions.todo account_installer_action_replace @@ -92,7 +134,7 @@ -