From 2cb3b0f382e25c77358ae705872ff92c99f0c6b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 18 Oct 2013 16:44:48 +0200 Subject: [PATCH] [FIX] sale_crm: fixed view inheritance TODO: re-add the button in invisible bzr revid: tde@openerp.com-20131018144448-hpbds5oobcqpr1uv --- addons/crm/crm_lead.py | 8 ++++++-- addons/sale_crm/sale_crm_view.xml | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index 046d4419809..e2af3739fe0 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -387,7 +387,9 @@ class crm_lead(format_address, osv.osv): return False def case_mark_lost(self, cr, uid, ids, context=None): - """ Mark the case as lost: state=cancel and probability=0 """ + """ Mark the case as lost: state=cancel and probability=0 + :deprecated: this method will be removed in OpenERP v8. + """ for lead in self.browse(cr, uid, ids): stage_id = self.stage_find(cr, uid, [lead], lead.section_id.id or False, [('probability', '=', 0.0), ('on_change', '=', True), ('sequence', '>', 1)], context=context) if stage_id: @@ -399,7 +401,9 @@ class crm_lead(format_address, osv.osv): 'Create a specific stage or edit an existing one by editing columns of your opportunity pipe.')) def case_mark_won(self, cr, uid, ids, context=None): - """ Mark the case as won: state=done and probability=100 """ + """ Mark the case as won: state=done and probability=100 + :deprecated: this method will be removed in OpenERP v8. + """ for lead in self.browse(cr, uid, ids): stage_id = self.stage_find(cr, uid, [lead], lead.section_id.id or False, [('probability', '=', 100.0), ('on_change', '=', True), ('sequence', '>', 1)], context=context) if stage_id: diff --git a/addons/sale_crm/sale_crm_view.xml b/addons/sale_crm/sale_crm_view.xml index 34f32e0b58b..8c008339903 100644 --- a/addons/sale_crm/sale_crm_view.xml +++ b/addons/sale_crm/sale_crm_view.xml @@ -8,7 +8,7 @@ - +