From b170ef94fccb34765bc4acec66e4659a24ce1753 Mon Sep 17 00:00:00 2001 From: "RVO(OpenERP)" <> Date: Thu, 25 Mar 2010 19:47:36 +0530 Subject: [PATCH] FIX converted private methods called from views to public bzr revid: hda@tinyerp.com-20100325141736-itdnr9bfe7iox4to --- addons/account/account_move_line.py | 4 ++-- addons/account/account_view.xml | 4 ++-- addons/account_invoice_layout/account_invoice_layout.py | 6 +++--- .../account_invoice_layout/account_invoice_layout_view.xml | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index 0adc85a942e..07d8e1a02ac 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -278,7 +278,7 @@ class account_move_line(osv.osv): data['amount_currency'] = v return data - def _on_create_write(self, cr, uid, id, context={}): + def on_create_write(self, cr, uid, id, context={}): ml = self.browse(cr, uid, id, context) return map(lambda x: x.id, ml.move_id.line_id) @@ -733,7 +733,7 @@ class account_move_line(osv.osv): state = ' colors="red:state==\'draft\'"' #xml = '''\n\n\t''' % (title, state) - xml = '''\n\n\t''' % (title, state) + xml = '''\n\n\t''' % (title, state) fields = [] widths = { diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index d865823e9cd..88205521b1c 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -159,7 +159,7 @@ - + List of Accounts account.account @@ -681,7 +681,7 @@ tree - + diff --git a/addons/account_invoice_layout/account_invoice_layout.py b/addons/account_invoice_layout/account_invoice_layout.py index 58f7721d253..2317e0c65a9 100644 --- a/addons/account_invoice_layout/account_invoice_layout.py +++ b/addons/account_invoice_layout/account_invoice_layout.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- ############################################################################## -# +# # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (). # @@ -15,7 +15,7 @@ # 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 . # ############################################################################## @@ -70,7 +70,7 @@ class account_invoice_line(osv.osv): res[field]['states'][key] = value return res - def _onchange_invoice_line_view(self, cr, uid, id, type, context={}, *args): + def onchange_invoice_line_view(self, cr, uid, id, type, context={}, *args): if (not type): return {} diff --git a/addons/account_invoice_layout/account_invoice_layout_view.xml b/addons/account_invoice_layout/account_invoice_layout_view.xml index 18e7996a7cd..fe11e407bf3 100644 --- a/addons/account_invoice_layout/account_invoice_layout_view.xml +++ b/addons/account_invoice_layout/account_invoice_layout_view.xml @@ -9,7 +9,7 @@ form - +