From 91e1d6b44548673d8649ce768ba9a0768d4b04a2 Mon Sep 17 00:00:00 2001 From: "rpa (Open ERP)" Date: Tue, 14 Sep 2010 11:27:48 +0530 Subject: [PATCH 001/118] =?UTF-8?q?[IMP]:=20account:=20Chart=20of=20accoun?= =?UTF-8?q?t=20is=20linked=20to=20the=20country=20user=20set=20in=20main?= =?UTF-8?q?=20company=20setup.=20If=20user=20put=20Belgium,=20the=20chart?= =?UTF-8?q?=20of=20account=20is=20belgium=20plan=20compatble=20normalis?= =?UTF-8?q?=C3=A9.=20If=20user=20set=20a=20country=20for=20which=20there?= =?UTF-8?q?=20is=20not=20chart=20of=20account,=20it=20is=20Generic=20chart?= =?UTF-8?q?=20of=20account=20by=20default.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bzr revid: rpa@tinyerp.com-20100914055748-ku2ybuu9hat3bh4j --- addons/account/installer.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/addons/account/installer.py b/addons/account/installer.py index ef3ac72a261..6290dae7875 100644 --- a/addons/account/installer.py +++ b/addons/account/installer.py @@ -73,6 +73,21 @@ class account_installer(osv.osv_memory): return user.company_id.id return False + def _get_default_charts(self, cr, uid, context={}): + module_name = False + company_id = self._default_company(cr, uid, context=context) + company = self.pool.get('res.company').browse(cr, uid, company_id) + address_id = self.pool.get('res.partner').address_get(cr, uid, [company.partner_id.id]) + if address_id['default']: + address = self.pool.get('res.partner.address').browse(cr, uid, address_id['default']) + code = address.country_id.code + module_name = (code and 'l10n_' + code.lower()) or False + if module_name: + module_id = self.pool.get('ir.module.module').search(cr, uid, [('name', '=', module_name)]) + if module_id: + return module_name + return 'configurable' + _defaults = { 'date_start': lambda *a: time.strftime('%Y-01-01'), 'date_stop': lambda *a: time.strftime('%Y-12-31'), @@ -80,7 +95,8 @@ class account_installer(osv.osv_memory): 'sale_tax':lambda *a:0.0, 'purchase_tax':lambda *a:0.0, 'company_id': _default_company, - 'bank_accounts_id':_get_default_accounts + 'bank_accounts_id':_get_default_accounts, + 'charts': _get_default_charts } def on_change_tax(self, cr, uid, id, tax): From 4d57c49b0129d6fc0c951796dfdb3c45e7764fec Mon Sep 17 00:00:00 2001 From: "qdp (OpenERP)" <> Date: Tue, 14 Sep 2010 17:15:55 +0530 Subject: [PATCH 002/118] [IMP]: crm: Improvement in listing sales teams in selection as properly sorted by hierarchy bzr revid: rpa@tinyerp.com-20100914114555-gpme5douyiuoy8to --- addons/crm/crm.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/crm/crm.py b/addons/crm/crm.py index 84e884043ba..a16f749323d 100644 --- a/addons/crm/crm.py +++ b/addons/crm/crm.py @@ -499,10 +499,14 @@ class crm_case_section(osv.osv): _name = "crm.case.section" _description = "Sales Teams" - _order = "name" + _order = "complete_name" + + def get_full_name(self, cr, uid, ids, field_name, arg, context={}): + return dict(self.name_get(cr, uid, ids, context)) _columns = { 'name': fields.char('Sales Team', size=64, required=True, translate=True), + 'complete_name': fields.function(get_full_name, method=True, type='char', size=256, readonly=True, store=True), 'code': fields.char('Code', size=8), 'active': fields.boolean('Active', help="If the active field is set to "\ "true, it will allow you to hide the sales team without removing it."), From 05d730f7bd79eca579f5e239c78611aacc564d95 Mon Sep 17 00:00:00 2001 From: "Harry (OpenERP)" Date: Tue, 14 Sep 2010 19:29:12 +0530 Subject: [PATCH 003/118] [IMP] configuration wizard bzr revid: hmo@tinyerp.com-20100914135912-ol6d5fxj1q7oq2t2 --- addons/account/account_installer.xml | 4 +-- addons/association/profile_association.xml | 2 +- .../base_contact_installer_view.xml | 3 +-- addons/base_setup/base_setup_installer.xml | 27 +++++++++---------- addons/base_setup/base_setup_todo.xml | 10 +++---- addons/base_setup/installer.py | 11 ++++---- addons/crm/crm_installer_view.xml | 2 +- .../wizard/document_configuration_view.xml | 4 +-- .../wizard/ftp_configuration_view.xml | 6 ++--- addons/knowledge/knowledge_installer.xml | 2 +- addons/marketing/marketing_view.xml | 2 +- addons/mrp/mrp_installer.xml | 2 +- addons/profile_tools/misc_tools_installer.xml | 6 ++--- addons/purchase/wizard/purchase_installer.xml | 2 +- addons/sale/sale_installer.xml | 2 +- addons/sale/sale_view.xml | 3 ++- 16 files changed, 44 insertions(+), 44 deletions(-) diff --git a/addons/account/account_installer.xml b/addons/account/account_installer.xml index e71dc6f09c8..a9de51c3afb 100644 --- a/addons/account/account_installer.xml +++ b/addons/account/account_installer.xml @@ -14,7 +14,7 @@ Configure Your Accounting Chart - Configure your accounting system. By default, Chart of Account is matching to your country. If there are not chart of account certified for your county, you can install the generic chart of account. + The default Chart of Accounts is matching your country selection. If no certified Chart of Accounts exists for your specified country, a generic one can be installed and will be selected by default. Configure @@ -73,7 +73,7 @@ - From this screen, you can install Other Addons in your accounting Application. Select the Addons to directly install them. If you do not think you need any of these right now, you can easily install them later. + Add extra Accounting Addons to the ones already installed. Remember you can always install them at a later stage. Configure diff --git a/addons/association/profile_association.xml b/addons/association/profile_association.xml index 4a5fb90cbd9..8460cfa6cc9 100644 --- a/addons/association/profile_association.xml +++ b/addons/association/profile_association.xml @@ -16,7 +16,7 @@ - Install more applications. A few applications are proposed according to the Association Profile you selected. You will be able to install them based on our requirements. + Here are specific applications related to the Association Profile you selected. Configure diff --git a/addons/base_contact/base_contact_installer_view.xml b/addons/base_contact/base_contact_installer_view.xml index e7575ebd44f..672c43745fb 100644 --- a/addons/base_contact/base_contact_installer_view.xml +++ b/addons/base_contact/base_contact_installer_view.xml @@ -31,8 +31,7 @@