From 3c4d5f8f4f5d9cc67b29647cfaa0be744deda3f8 Mon Sep 17 00:00:00 2001 From: x620 Date: Thu, 24 Mar 2016 10:44:13 +0500 Subject: [PATCH 1/4] Removed unused security, controllers.py and demo.xml --- res_partner_mails_count/__init__.py | 1 - res_partner_mails_count/__openerp__.py | 4 --- res_partner_mails_count/controllers.py | 20 --------------- res_partner_mails_count/demo.xml | 25 ------------------- .../security/ir.model.access.csv | 2 -- 5 files changed, 52 deletions(-) delete mode 100644 res_partner_mails_count/controllers.py delete mode 100644 res_partner_mails_count/demo.xml delete mode 100644 res_partner_mails_count/security/ir.model.access.csv diff --git a/res_partner_mails_count/__init__.py b/res_partner_mails_count/__init__.py index c7a6ca6..0f7cb6b 100644 --- a/res_partner_mails_count/__init__.py +++ b/res_partner_mails_count/__init__.py @@ -1,3 +1,2 @@ # -*- coding: utf-8 -*- -import controllers import models \ No newline at end of file diff --git a/res_partner_mails_count/__openerp__.py b/res_partner_mails_count/__openerp__.py index 0af6711..1d71078 100644 --- a/res_partner_mails_count/__openerp__.py +++ b/res_partner_mails_count/__openerp__.py @@ -28,8 +28,4 @@ 'views/res_partner_mails_count.xml', 'templates.xml', ], - # only loaded in demonstration mode - 'demo': [ - 'demo.xml', - ], } \ No newline at end of file diff --git a/res_partner_mails_count/controllers.py b/res_partner_mails_count/controllers.py deleted file mode 100644 index a1262c1..0000000 --- a/res_partner_mails_count/controllers.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -from openerp import http - -# class ResPartnerMailsCount(http.Controller): -# @http.route('/res_partner_mails_count/res_partner_mails_count/', auth='public') -# def index(self, **kw): -# return "Hello, world" - -# @http.route('/res_partner_mails_count/res_partner_mails_count/objects/', auth='public') -# def list(self, **kw): -# return http.request.render('res_partner_mails_count.listing', { -# 'root': '/res_partner_mails_count/res_partner_mails_count', -# 'objects': http.request.env['res_partner_mails_count.res_partner_mails_count'].search([]), -# }) - -# @http.route('/res_partner_mails_count/res_partner_mails_count/objects//', auth='public') -# def object(self, obj, **kw): -# return http.request.render('res_partner_mails_count.object', { -# 'object': obj -# }) \ No newline at end of file diff --git a/res_partner_mails_count/demo.xml b/res_partner_mails_count/demo.xml deleted file mode 100644 index 94953d2..0000000 --- a/res_partner_mails_count/demo.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res_partner_mails_count/security/ir.model.access.csv b/res_partner_mails_count/security/ir.model.access.csv deleted file mode 100644 index 99d8f27..0000000 --- a/res_partner_mails_count/security/ir.model.access.csv +++ /dev/null @@ -1,2 +0,0 @@ -id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_res_partner_mails_count_res_partner_mails_count,res_partner_mails_count.res_partner_mails_count,model_res_partner_mails_count_res_partner_mails_count,,1,0,0,0 \ No newline at end of file From f2a20020fc0731e80fbf2a4bf0ca8ed4ae2d233c Mon Sep 17 00:00:00 2001 From: x620 Date: Thu, 24 Mar 2016 10:51:42 +0500 Subject: [PATCH 2/4] Convert tabs in spaces --- res_partner_mails_count/templates.xml | 6 +++--- res_partner_mails_count/views/res_partner_mails_count.xml | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/res_partner_mails_count/templates.xml b/res_partner_mails_count/templates.xml index fe9b5b1..29c6de1 100644 --- a/res_partner_mails_count/templates.xml +++ b/res_partner_mails_count/templates.xml @@ -1,7 +1,7 @@ - - + res.partner.mails.count res.partner @@ -22,7 +22,7 @@ icon="fa-envelope"> - @@ -32,4 +45,4 @@ - \ No newline at end of file + From 479a0ba68c61842b0f7eba3dff612f93861ffd94 Mon Sep 17 00:00:00 2001 From: Ilyas Date: Fri, 25 Mar 2016 10:57:11 +0500 Subject: [PATCH 4/4] [FIX] useless compose fields --- res_partner_mails_count/tests/test_mail.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/res_partner_mails_count/tests/test_mail.py b/res_partner_mails_count/tests/test_mail.py index 4fc6383..f606964 100644 --- a/res_partner_mails_count/tests/test_mail.py +++ b/res_partner_mails_count/tests/test_mail.py @@ -13,8 +13,6 @@ class test_message_count(TransactionCase): compose = mail_compose.with_context( { 'default_composition_mode': 'comment', - 'default_model': 'res.partner', - 'default_res_id': new_partner1.id, }).create( { 'subject': 'test subj',