diff --git a/addons/account/account.py b/addons/account/account.py index 7c84a164b9c..ddd6d95ca0a 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1753,7 +1753,7 @@ class account_tax_code(osv.osv): res2 = {} for record in self.browse(cr, uid, ids, context=context): def _rec_get(record): - amount = res.get(record.id, 0.0) + amount = res.get(record.id) or 0.0 for rec in record.child_ids: amount += _rec_get(rec) * rec.sign return amount diff --git a/addons/account_payment/wizard/account_payment_populate_statement.py b/addons/account_payment/wizard/account_payment_populate_statement.py index 92b1b1452f5..d85f20d8637 100644 --- a/addons/account_payment/wizard/account_payment_populate_statement.py +++ b/addons/account_payment/wizard/account_payment_populate_statement.py @@ -92,6 +92,7 @@ class account_payment_populate_statement(osv.osv_memory): 'date': line.date or time.strftime('%Y-%m-%d'), 'amount': abs(amount), 'period_id': statement.period_id.id, + 'payment_rate_currency_id': statement.currency.id, } voucher_id = voucher_obj.create(cr, uid, voucher_res, context=context) diff --git a/addons/crm/calendar_event_menu.xml b/addons/crm/calendar_event_menu.xml index aec88a5748e..66c1119727f 100644 --- a/addons/crm/calendar_event_menu.xml +++ b/addons/crm/calendar_event_menu.xml @@ -5,5 +5,16 @@ + + CRM - Meetings Search + crm.meeting + + + + + + + + diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index c00df49bb20..42956043aba 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -919,6 +919,7 @@ class crm_lead(format_address, osv.osv): opportunity = self.browse(cr, uid, ids[0], context) res = self.pool.get('ir.actions.act_window').for_xml_id(cr, uid, 'calendar', 'action_calendar_event', context) res['context'] = { + 'search_default_opportunity_id': opportunity.id, 'default_opportunity_id': opportunity.id, 'default_partner_id': opportunity.partner_id and opportunity.partner_id.id or False, 'default_partner_ids' : opportunity.partner_id and [opportunity.partner_id.id] or False, diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index 6b23be6b97e..f21e6f88195 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -392,7 +392,7 @@ name="%(opportunity2phonecall_act)d"/>