diff --git a/addons/account/report/account_print_overdue.rml b/addons/account/report/account_print_overdue.rml index 3e8b9b04b62..dd573580c6c 100644 --- a/addons/account/report/account_print_overdue.rml +++ b/addons/account/report/account_print_overdue.rml @@ -277,7 +277,7 @@
- [[ getLines(o) and removeParentNode('section')]]There is nothing due with this customer + [[ getLines(o) and removeParentNode('section')]]There is nothing due with this customer.
diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index da0591b1c5a..2bfb93f5d6e 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -236,7 +236,7 @@ class crm_lead(base_stage, format_address, osv.osv): 'ref': fields.reference('Reference', selection=crm._links_get, size=128), 'ref2': fields.reference('Reference 2', selection=crm._links_get, size=128), 'phone': fields.char("Phone", size=64), - 'date_deadline': fields.date('Expected Closing'), + 'date_deadline': fields.date('Expected Closing', help="Estimate of the date on which the opportunity will be won."), 'date_action': fields.date('Next Action Date', select=True), 'title_action': fields.char('Next Action', size=64), 'color': fields.integer('Color Index'), diff --git a/addons/event/event.py b/addons/event/event.py index 0cff38fc9f8..b79d86ea35e 100644 --- a/addons/event/event.py +++ b/addons/event/event.py @@ -338,7 +338,7 @@ class event_registration(osv.osv): 'date_closed': fields.datetime('Attended Date', readonly=True), 'date_open': fields.datetime('Registration Date', readonly=True), 'reply_to': fields.related('event_id','reply_to',string='Reply-to Email', type='char', size=128, readonly=True,), - 'log_ids': fields.one2many('mail.message', 'res_id', 'Logs', domain=[('email_from', '=', False),('model','=',_name)]), + 'log_ids': fields.one2many('mail.message', 'res_id', 'Logs', domain=[('model','=',_name)]), 'event_end_date': fields.related('event_id','date_end', type='datetime', string="Event End Date", readonly=True), 'event_begin_date': fields.related('event_id', 'date_begin', type='datetime', string="Event Start Date", readonly=True), 'user_id': fields.many2one('res.users', 'User', states={'done': [('readonly', True)]}), diff --git a/addons/pad/pad.py b/addons/pad/pad.py index c7641540a0a..e5b36e5f64c 100644 --- a/addons/pad/pad.py +++ b/addons/pad/pad.py @@ -4,10 +4,13 @@ import random import re import string import urllib2 +import logging from tools.translate import _ from openerp.tools.misc import html2plaintext from py_etherpad import EtherpadLiteClient +_logger = logging.getLogger(__name__) + class pad_common(osv.osv_memory): _name = 'pad.common' @@ -59,10 +62,13 @@ class pad_common(osv.osv_memory): def pad_get_content(self, cr, uid, url, context=None): content = '' if url: - page = urllib2.urlopen('%s/export/html'%url).read() - mo = re.search('(.*)',page) - if mo: - content = mo.group(1) + try: + page = urllib2.urlopen('%s/export/html'%url).read() + mo = re.search('(.*)',page) + if mo: + content = mo.group(1) + except: + _logger.warning("No url found '%s'.", url) return content # TODO diff --git a/addons/sale_stock/sale_stock.py b/addons/sale_stock/sale_stock.py index 5d30dc9a249..a431ded0c19 100644 --- a/addons/sale_stock/sale_stock.py +++ b/addons/sale_stock/sale_stock.py @@ -636,7 +636,7 @@ class sale_advance_payment_inv(osv.osv_memory): result = super(sale_advance_payment_inv, self)._create_invoices(cr, uid, inv_values, sale_id, context=context) sale_obj = self.pool.get('sale.order') sale_line_obj = self.pool.get('sale.order.line') - wizard = self.browse(cr, uid, ids[0], context) + wizard = self.browse(cr, uid, [result], context) sale = sale_obj.browse(cr, uid, sale_id, context=context) if sale.order_policy == 'postpaid': raise osv.except_osv( @@ -646,8 +646,8 @@ class sale_advance_payment_inv(osv.osv_memory): # If invoice on picking: add the cost on the SO # If not, the advance will be deduced when generating the final invoice - line_name = inv_values.get('invoice_line') and inv_values.get('invoice_line')[2].get('name') or '' - line_tax = inv_values.get('invoice_line') and inv_values.get('invoice_line')[2].get('invoice_line_tax_id') or False + line_name = inv_values.get('invoice_line') and inv_values.get('invoice_line')[0][2].get('name') or '' + line_tax = inv_values.get('invoice_line') and inv_values.get('invoice_line')[0][2].get('invoice_line_tax_id') or False if sale.order_policy == 'picking': vals = { 'order_id': sale.id,