diff --git a/addons/account/account.py b/addons/account/account.py index c3cd13a8115..904f5e549f5 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -708,7 +708,9 @@ class account_journal(osv.osv): return self.name_get(cr, user, ids, context=context) - def onchange_type(self, cr, uid, ids, type, currency): + def onchange_type(self, cr, uid, ids, type, currency,context=None): + if context is None: + context = {} obj_data = self.pool.get('ir.model.data') user_pool = self.pool.get('res.users') diff --git a/addons/account/invoice.py b/addons/account/invoice.py index b6d8fcb9de0..e6e07b8eb68 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -1313,7 +1313,6 @@ class account_invoice_line(osv.osv): if context is None: context = {} company_id = context.get('company_id',False) - tax_obj = self.pool.get('account.tax') if not partner_id: raise osv.except_osv(_('No Partner Defined !'),_("You must first select a partner !") ) if not product: diff --git a/addons/outlook/installer.py b/addons/outlook/installer.py index f3f5ece60d6..47d488849fe 100755 --- a/addons/outlook/installer.py +++ b/addons/outlook/installer.py @@ -39,7 +39,7 @@ class outlook_installer(osv.osv_memory): _columns = { 'name':fields.char('File name', size=34), 'doc_name':fields.char('File name', size=64), - 'outlook':fields.boolean('Outlook Plug-in ', help="Allows you to select an object that you’d like to add to your email and its attachments."), + 'outlook':fields.boolean('Outlook Plug-in ', help="Allows you to select an object that you would like to add to your email and its attachments."), 'plugin_file':fields.binary('Outlook Plug-in', readonly=True, help="outlook plug-in file. Save as this file and install this plug-in in outlook."), 'doc_file':fields.char('Installation Manual',size="264",help="The documentation file :- how to install Outlook Plug-in.", readonly=True), 'description':fields.text('Description', readonly=True)