diff --git a/addons/account_followup/__openerp__.py b/addons/account_followup/__openerp__.py index 6b0c12c0be3..ca791c3c87b 100644 --- a/addons/account_followup/__openerp__.py +++ b/addons/account_followup/__openerp__.py @@ -20,7 +20,7 @@ ############################################################################## { - 'name': 'Follow-up Management', + 'name': 'Payment Follow-up Management', 'version': '1.0', 'category': 'Accounting & Finance', 'description': """ diff --git a/addons/account_followup/account_followup.py b/addons/account_followup/account_followup.py index 249ee7af179..7399fdf4609 100644 --- a/addons/account_followup/account_followup.py +++ b/addons/account_followup/account_followup.py @@ -67,7 +67,6 @@ class followup_line(osv.osv): 'manual_action_note':fields.text('Action To Do', placeholder="e.g. Give a phone call, check with others , ..."), 'manual_action_responsible_id':fields.many2one('res.users', 'Assign a Responsible', ondelete='set null'), 'email_template_id':fields.many2one('email.template', 'Email Template', ondelete='set null'), - 'email_body':fields.related('email_template_id', 'body_html', type='text', string="Email Message", relation="email.template", translate="True"), } _order = 'delay' _sql_constraints = [('days_uniq', 'unique(followup_id, delay)', 'Days of the follow-up levels must be different')] #TODO: ADD FOR multi-company! @@ -90,18 +89,6 @@ Best Regards, - def on_change_template(self, cr, uid, ids, template_id, context=None): - #result = {} - values = {} - if template_id: - template = self.pool.get('email.template').browse(cr, uid, template_id, context=context) - values = { - 'email_body':template.body_html, - } - return {'value': values} - - - def _check_description(self, cr, uid, ids, context=None): for line in self.browse(cr, uid, ids, context=context): if line.description: @@ -163,7 +150,6 @@ class res_partner(osv.osv): def fields_view_get(self, cr, uid, view_id=None, view_type=None, context=None, toolbar=False, submenu=False): res = super(res_partner, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar, submenu=submenu) - if view_type == 'form' and context and 'Followupfirst' in context.keys() and context['Followupfirst'] == True: doc = etree.XML(res['arch'], parser=None, base_url=None) first_node = doc.xpath("//page[@string='Payments Follow-up']") diff --git a/addons/account_followup/account_followup_customers.xml b/addons/account_followup/account_followup_customers.xml index 22c40d0d614..4308d8efcad 100644 --- a/addons/account_followup/account_followup_customers.xml +++ b/addons/account_followup/account_followup_customers.xml @@ -15,10 +15,8 @@ - - - + @@ -32,7 +30,7 @@ - + @@ -76,7 +74,7 @@ tree,form {} - {'Followupfirst':True, 'search_default_todo': True, 'search_default_credits': True} + {'Followupfirst':True, 'search_default_todo': True} @@ -115,7 +113,7 @@