[FIX] calendar/crm: Add active_id (if in model partner_id) in defaults values from...
authorJeremy Kersten <jke@odoo.com>
Thu, 7 Aug 2014 11:02:59 +0000 (13:02 +0200)
committerJeremy Kersten <jke@odoo.com>
Thu, 7 Aug 2014 11:02:59 +0000 (13:02 +0200)
commit6655a020c3b3fdc3cfcb6336203afc0027892ca1
treeaeb3cdfa7f32881252e7bb84efe01bf7069406fb
parentb0b9153cf765b027080b26905d571caf80bb9d26
[FIX] calendar/crm: Add active_id (if in model partner_id) in defaults values from partner_ids when we creates a new meeting.

Bug was that when you click on meeting button from a res_partner form (Customers in menu), the button overwrites the context to use the active partner as a default in the calendar meeting. By consequence, the context overwritte the default partner who are the creator. Now the context could be removed from action and that is in get_default for partner_ids (from model calendar_event) that we add the creator AND the active_id if from a model res_partner.
addons/calendar/calendar.py
addons/crm/res_partner_view.xml