diff --git a/addons/account/account_installer.xml b/addons/account/account_installer.xml index 609dd8a6c5e..dd106e75afb 100644 --- a/addons/account/account_installer.xml +++ b/addons/account/account_installer.xml @@ -45,35 +45,19 @@ account.installer.modules.form - account.installer.modules + base.setup.installer form - + -
- Accounting Application Configuration -
- - Configure Your Accounting Application - - - - Add extra Accounting functionalities to the ones already installed. + + + + + + + - - Configure - - - - - - - - - - - -
@@ -88,27 +72,16 @@ new - - Accounting Application Configuration - ir.actions.act_window - account.installer.modules - - form - form - new - + + Accounting + 5 + + 3 - onskip - - - - - 5 - always - + special diff --git a/addons/account/company_view.xml b/addons/account/company_view.xml index a9e6815f975..60a3d0eea84 100644 --- a/addons/account/company_view.xml +++ b/addons/account/company_view.xml @@ -22,12 +22,9 @@ res.company form - - - + - - + diff --git a/addons/account/configurable_account_chart.xml b/addons/account/configurable_account_chart.xml index 1a0a21d3971..fbae77349af 100644 --- a/addons/account/configurable_account_chart.xml +++ b/addons/account/configurable_account_chart.xml @@ -612,12 +612,12 @@ - + Generate Chart of Accounts from a Chart Template - open - onskip + + special diff --git a/addons/account/installer.py b/addons/account/installer.py index 639cc2578ae..39c0863b3c1 100644 --- a/addons/account/installer.py +++ b/addons/account/installer.py @@ -240,8 +240,7 @@ class account_installer(osv.osv_memory): account_installer() class account_installer_modules(osv.osv_memory): - _name = 'account.installer.modules' - _inherit = 'res.config.installer' + _inherit = 'base.setup.installer' _columns = { 'account_analytic_plans': fields.boolean('Multiple Analytic Plans', help="Allows invoice lines to impact multiple analytic accounts " @@ -253,18 +252,11 @@ class account_installer_modules(osv.osv_memory): help="Helps you generate reminder letters for unpaid invoices, " "including multiple levels of reminding and customized " "per-partner policies."), - 'account_voucher': fields.boolean('Voucher Management', - help="Account Voucher module includes all the basic requirements of " - "Voucher Entries for Bank, Cash, Sales, Purchase, Expenses, Contra, etc... "), 'account_anglo_saxon': fields.boolean('Anglo-Saxon Accounting', help="This module will support the Anglo-Saxons accounting methodology by " "changing the accounting logic with stock transactions."), } - _defaults = { - 'account_voucher': True, - } - account_installer_modules() # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/account_analytic_plans/__init__.py b/addons/account_analytic_plans/__init__.py index 067aa84d267..a5c371fa6ec 100644 --- a/addons/account_analytic_plans/__init__.py +++ b/addons/account_analytic_plans/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- ############################################################################## -# +# # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (). # @@ -15,10 +15,9 @@ # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# along with this program. If not, see . # ############################################################################## - import account_analytic_plans import wizard import report diff --git a/addons/account_analytic_plans/__openerp__.py b/addons/account_analytic_plans/__openerp__.py index dab9e83c75a..1240a336500 100644 --- a/addons/account_analytic_plans/__openerp__.py +++ b/addons/account_analytic_plans/__openerp__.py @@ -69,7 +69,8 @@ of distribution models. 'account_analytic_plans_view.xml', 'account_analytic_plans_report.xml', 'wizard/analytic_plan_create_model_view.xml', - 'wizard/account_crossovered_analytic_view.xml' + 'wizard/account_crossovered_analytic_view.xml', + 'account_analytic_plans_installer_view.xml' ], 'demo_xml' : [], 'test' : ['test/acount_analytic_plans_report.yml'], diff --git a/addons/account_analytic_plans/account_analytic_plans_installer_view.xml b/addons/account_analytic_plans/account_analytic_plans_installer_view.xml new file mode 100644 index 00000000000..3543539debb --- /dev/null +++ b/addons/account_analytic_plans/account_analytic_plans_installer_view.xml @@ -0,0 +1,25 @@ + + + + + + Account Analytic Plans + ir.actions.act_window + account.analytic.plan + form + tree,form + + + + + + + 15 + normal + skip + + + + + + diff --git a/addons/account_followup/account_followup.py b/addons/account_followup/account_followup.py index c798c703f37..06a53bb9548 100644 --- a/addons/account_followup/account_followup.py +++ b/addons/account_followup/account_followup.py @@ -33,6 +33,20 @@ class followup(osv.osv): _defaults = { 'company_id': lambda s, cr, uid, c: s.pool.get('res.company')._company_default_get(cr, uid, 'account_followup.followup', context=c), } + + def check_company_uniq(self, cr, uid, ids, context=None): + sr_id = self.search(cr,uid,[],context=context) + lines = self.browse(cr, uid, sr_id, context=context) + company = [] + for l in lines: + if l.company_id.id in company: + return False + if l.company_id.id not in company: + company.append(l.company_id.id) + return True + _constraints = [ + (check_company_uniq, 'Only One Folllowup by Company.',['company_id'] ) + ] followup() @@ -47,6 +61,9 @@ class followup_line(osv.osv): 'followup_id': fields.many2one('account_followup.followup', 'Follow Ups', required=True, ondelete="cascade"), 'description': fields.text('Printed Message', translate=True), } + _defaults = { + 'start': 'days', + } followup_line() diff --git a/addons/account_followup/account_followup_view.xml b/addons/account_followup/account_followup_view.xml index 326264ffdcd..60d414477b0 100644 --- a/addons/account_followup/account_followup_view.xml +++ b/addons/account_followup/account_followup_view.xml @@ -8,10 +8,9 @@ tree - - + @@ -22,12 +21,14 @@ form
- - - - + + + + + - + +