Pinakin Nayi (OpenERP) has proposed merging
lp:~openerp-commiter/openobject-addons/trunk-fix-server-log-sale-pna into
lp:~openerp-dev/openobject-addons/trunk-fix-server-log.
Requested reviews:
Bhumika (OpenERP) (sbh-openerp)
For more details, see:
https://code.launchpad.net/~openerp-commiter/openobject-addons/trunk-fix-server-log-sale-pna/+merge/110065
Hello,
Warning in Sale module are removed.
Thanks,
pna
--
https://code.launchpad.net/~openerp-commiter/openobject-addons/trunk-fix-server-log-sale-pna/+merge/110065
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-fix-server-log.
=== modified file 'event_sale/event_sale.py'
--- event_sale/event_sale.py 2012-05-25 07:21:14 +0000
+++ event_sale/event_sale.py 2012-06-13 13:06:22 +0000
@@ -78,7 +78,7 @@
dic = {
'name': order_line.order_id.partner_invoice_id.name,
'partner_id': order_line.order_id.partner_id.id,
- 'contact_id': order_line.order_id.partner_invoice_id.id,
+ # 'contact_id': order_line.order_id.partner_invoice_id.id,
'nb_register': int(order_line.product_uom_qty),
'email': order_line.order_id.partner_id.email,
'phone': order_line.order_id.partner_id.phone,
@@ -88,6 +88,6 @@
'event_id': order_line.event_id.id,
}
registration_id = registration_obj.create(cr, uid, dic, context=context)
- message = _("The registration %s has been created from the Sale Order %s.") % (registration_id, order_line.order_id.name)
- registration_obj.log(cr, uid, registration_id, message)
+ message = _("The registration %s has been <b>created</b> from the Sale Order %s.") % (registration_id, order_line.order_id.name)
+ registration_obj.message_append_note(cr, uid, [registration_id], body=message, context=context)
return super(sale_order_line, self).button_confirm(cr, uid, ids, context=context)
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp