diff --git a/.travis.yml b/.travis.yml index e6c58d5..89ce13b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: python python: - - "2.7" + - "3.5" #dist: trusty sudo: false @@ -15,7 +15,7 @@ addons: env: global: - - VERSION="10.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0" UNIT_TEST="0" + - VERSION="11.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0" UNIT_TEST="0" - EXCLUDE="hw_printer_network" - PYLINT_ODOO_JSLINTRC="/home/travis/maintainer-quality-tools/travis/cfg/.jslintrc" - TRANSIFEX_USER='i18n-bot@it-projects.info' @@ -27,9 +27,6 @@ env: - TESTS="1" ODOO_REPO="odoo/odoo" - TESTS="1" ODOO_REPO="OCA/OCB" -virtualenv: - system_site_packages: true - install: - pip install anybox.testing.openerp - git clone https://github.com/it-projects-llc/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools diff --git a/mail_attachment_popup/README.rst b/mail_attachment_popup/README.rst deleted file mode 100644 index fd96743..0000000 --- a/mail_attachment_popup/README.rst +++ /dev/null @@ -1,29 +0,0 @@ -=================== - Popup Attachments -=================== - - The module opens attached mail images in popup. - -Credits -======= - -Contributors ------------- -* Dinar Gabbasov - -Sponsors --------- -* `IT-Projects LLC `_ - -Further information -=================== - -Demo: http://runbot.it-projects.info/demo/mail-addons/9.0 - -HTML Description: https://apps.odoo.com/apps/modules/9.0/mail_attachment_popup/ - -Usage instructions: ``_ - -Changelog: ``_ - -Tested on Odoo 9.0 021878f9c41c6d652abf345c3c5537fe92f8bc5b diff --git a/mail_attachment_popup/__init__.py b/mail_attachment_popup/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/mail_attachment_popup/__openerp__.py b/mail_attachment_popup/__openerp__.py deleted file mode 100644 index f5d1b3e..0000000 --- a/mail_attachment_popup/__openerp__.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -{ - "name": """Popup Attachments""", - "summary": """Open attached mail images in popup""", - "category": "Extra Tools", - "version": "1.0.0", - "images": ['images/popup_image.png'], - - "author": "IT-Projects LLC, Dinar Gabbasov", - "support": "apps@it-projects.info", - 'website': "https://twitter.com/gabbasov_dinar", - "license": "GPL-3", - "price": "50.0", - "currency": "EUR", - - "depends": [ - "mail", - ], - "external_dependencies": {"python": [], "bin": []}, - "data": [ - "views/mail_attachment_popup_template.xml", - ], - "qweb": [ - "static/src/xml/mail_attachment_popup.xml", - ], - - "installable": False, - 'auto_install': False, -} diff --git a/mail_attachment_popup/doc/changelog.rst b/mail_attachment_popup/doc/changelog.rst deleted file mode 100644 index 9ee2b48..0000000 --- a/mail_attachment_popup/doc/changelog.rst +++ /dev/null @@ -1,4 +0,0 @@ -`1.0.0` -------- - -- Init version diff --git a/mail_attachment_popup/doc/index.rst b/mail_attachment_popup/doc/index.rst deleted file mode 100644 index 70b614f..0000000 --- a/mail_attachment_popup/doc/index.rst +++ /dev/null @@ -1,16 +0,0 @@ -=================== - Popup Attachments -=================== - -Installation -============ - -* `Install `__ this module in a usual way - -Usage -===== - -* Open 'Messaging' menu -* Find any message with image in attachments -* Click on the image -* Browser opens image in popup instead of downloading it diff --git a/mail_attachment_popup/images/popup_image.png b/mail_attachment_popup/images/popup_image.png deleted file mode 100644 index 97af8e9..0000000 Binary files a/mail_attachment_popup/images/popup_image.png and /dev/null differ diff --git a/mail_attachment_popup/static/description/attach_image.png b/mail_attachment_popup/static/description/attach_image.png deleted file mode 100644 index c403348..0000000 Binary files a/mail_attachment_popup/static/description/attach_image.png and /dev/null differ diff --git a/mail_attachment_popup/static/description/download.png b/mail_attachment_popup/static/description/download.png deleted file mode 100644 index 9ad68ef..0000000 Binary files a/mail_attachment_popup/static/description/download.png and /dev/null differ diff --git a/mail_attachment_popup/static/description/icon.png b/mail_attachment_popup/static/description/icon.png deleted file mode 100644 index 79f7d8f..0000000 Binary files a/mail_attachment_popup/static/description/icon.png and /dev/null differ diff --git a/mail_attachment_popup/static/description/index.html b/mail_attachment_popup/static/description/index.html deleted file mode 100644 index 07a7ffa..0000000 --- a/mail_attachment_popup/static/description/index.html +++ /dev/null @@ -1,84 +0,0 @@ -
-
-
-

Popup Attachments

-

Open attachments in popup

-
-
-
- -
-
-
-

- The module allows to open attachments (images) in popup. It is convenient if you want to display them only without downloading. -

-
-
-
- -
-
-
-

How it works

-
-
-
- -
-
-
-

- Go to "Messaging" menu and open email that contains image(s) in attachment. -

-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-

- Click on the image and see how popup is appear. -

-
-
-
- -
-
-
-

- Moreover, you can download it to your device by clicking on the "Download" button if needed. -

-
-
-
- -
-
-
-
- -
-
-
-

Need our service?

-

Contact us by email or fill out request form

- -
-
-
diff --git a/mail_attachment_popup/static/description/popup.png b/mail_attachment_popup/static/description/popup.png deleted file mode 100644 index 674baf7..0000000 Binary files a/mail_attachment_popup/static/description/popup.png and /dev/null differ diff --git a/mail_attachment_popup/static/lib/js/jquery.arcticmodal.js b/mail_attachment_popup/static/lib/js/jquery.arcticmodal.js deleted file mode 100644 index 0db47e2..0000000 --- a/mail_attachment_popup/static/lib/js/jquery.arcticmodal.js +++ /dev/null @@ -1,429 +0,0 @@ -/* - - arcticModal — jQuery plugin - Version: 0.3 - Author: Sergey Predvoditelev (sergey.predvoditelev@gmail.com) - Company: Arctic Laboratory (http://arcticlab.ru/) - - Docs & Examples: http://arcticlab.ru/arcticmodal/ - - */ -(function($) { - - - var default_options = { - - type: 'html', // ajax или html - content: '', - url: '', - ajax: {}, - ajax_request: null, - - closeOnEsc: true, - closeOnOverlayClick: true, - - clone: false, - - overlay: { - block: undefined, - tpl: '
', - css: { - backgroundColor: '#000', - opacity: .6 - } - }, - - container: { - block: undefined, - tpl: '
' - }, - - wrap: undefined, - body: undefined, - - errors: { - tpl: '
', - autoclose_delay: 2000, - ajax_unsuccessful_load: 'Error' - }, - - openEffect: { - type: 'fade', - speed: 400 - }, - closeEffect: { - type: 'fade', - speed: 400 - }, - - beforeOpen: $.noop, - afterOpen: $.noop, - beforeClose: $.noop, - afterClose: $.noop, - afterLoading: $.noop, - afterLoadingOnShow: $.noop, - errorLoading: $.noop - - }; - - - var modalID = 0; - var modals = $([]); - - - var utils = { - - - // Определяет произошло ли событие e вне блока block - isEventOut: function(blocks, e) { - var r = true; - $(blocks).each(function() { - if ($(e.target).get(0)==$(this).get(0)) r = false; - if ($(e.target).closest('HTML', $(this).get(0)).length==0) r = false; - }); - return r; - } - - - }; - - - var modal = { - - - // Возвращает элемент, которым был вызван плагин - getParentEl: function(el) { - var r = $(el); - if (r.data('arcticmodal')) return r; - r = $(el).closest('.arcticmodal-container').data('arcticmodalParentEl'); - if (r) return r; - return false; - }, - - - // Переход - transition: function(el, action, options, callback) { - callback = callback==undefined ? $.noop : callback; - switch (options.type) { - case 'fade': - action=='show' ? el.fadeIn(options.speed, callback) : el.fadeOut(options.speed, callback); - break; - case 'none': - action=='show' ? el.show() : el.hide(); - callback(); - break; - } - }, - - - // Подготвка содержимого окна - prepare_body: function(D, $this) { - - // Обработчик закрытия - $('.arcticmodal-close', D.body).unbind('click.arcticmodal').bind('click.arcticmodal', function() { - $this.arcticmodal('close'); - return false; - }); - - }, - - - // Инициализация элемента - init_el: function($this, options) { - var D = $this.data('arcticmodal'); - if (D) return; - - D = options; - modalID++; - D.modalID = modalID; - - // Overlay - D.overlay.block = $(D.overlay.tpl); - D.overlay.block.css(D.overlay.css); - - // Container - D.container.block = $(D.container.tpl); - - // BODY - D.body = $('.arcticmodal-container_i2', D.container.block); - if (options.clone) { - D.body.html($this.clone(true)); - } else { - $this.before('