From b8de0a61cbc279d06f08d58e8807bca007e4692d Mon Sep 17 00:00:00 2001 From: Paramjit Singh Sahota Date: Tue, 28 Aug 2012 13:02:20 +0530 Subject: [PATCH 1/2] [IMP] Added the _inherit statement in Account_CODA to resolve the onchange error. bzr revid: psa@tinyerp.com-20120828073220-t3fo6can52f0ijmc --- addons/account_coda/account_coda.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account_coda/account_coda.py b/addons/account_coda/account_coda.py index cd117b5be88..7a6b7783a5d 100644 --- a/addons/account_coda/account_coda.py +++ b/addons/account_coda/account_coda.py @@ -352,6 +352,7 @@ account_bank_statement() class coda_bank_statement_line(osv.osv): _name = 'coda.bank.statement.line' + _inherit = "account.bank.statement.line" _order = 'sequence' _description = 'CODA Bank Statement Line' _columns = { From b7763d072d1b14e6464e950e9b54a57e2f775c76 Mon Sep 17 00:00:00 2001 From: Paramjit Singh Sahota Date: Mon, 3 Sep 2012 16:42:02 +0530 Subject: [PATCH 2/2] [IMP] Improved the code and removed the conflicts. bzr revid: psa@tinyerp.com-20120903111202-gon6rnmyd3wjofp5 --- addons/account/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account.py b/addons/account/account.py index ec38bf7479e..e11479e4dc0 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -186,7 +186,7 @@ class account_account_type(osv.osv): ('income', _('Profit & Loss (Income account)')), ('expense', _('Profit & Loss (Expense account)')), ('asset', _('Balance Sheet (Asset account)')), - ('liability', _('Balance Sheet (Liability account)'))], store=True, help="This field is used to generate legal reports: profit and loss, balance sheet.", required=True), + ('liability', _('Balance Sheet (Liability account)'))], help="This field is used to generate legal reports: profit and loss, balance sheet.", required=True), 'note': fields.text('Description'), } _defaults = {