Henry Zhou
8 years ago
committed by
Pedro M. Baeza
17 changed files with 142 additions and 486 deletions
-
28web_export_view/README.rst
-
20web_export_view/__init__.py
-
40web_export_view/__manifest__.py
-
20web_export_view/controllers/__init__.py
-
36web_export_view/controllers/controllers.py
-
44web_export_view/i18n/de.po
-
46web_export_view/i18n/es.po
-
44web_export_view/i18n/fr.po
-
46web_export_view/i18n/is.po
-
44web_export_view/i18n/nl.po
-
47web_export_view/i18n/sl.po
-
43web_export_view/i18n/web_export_view.pot
-
38web_export_view/i18n/zh_CN.po
-
99web_export_view/static/src/js/web_export_view.js
-
11web_export_view/static/src/xml/web_export_view_template.xml
-
11web_export_view/view/web_export_view.xml
-
9web_export_view/views/web_export_view_view.xml
@ -1,21 +1,3 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# Copyright (C) 2012 Agile Business Group sagl (<http://www.agilebg.com>) |
|||
# Copyright (C) 2012 Domsense srl (<http://www.domsense.com>) |
|||
# |
|||
# This program is free software: you can redistribute it and/or modify |
|||
# it under the terms of the GNU Affero General Public License as published |
|||
# by the Free Software Foundation, either version 3 of the License, or |
|||
# (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU Affero General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Affero General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
|
|||
from . import controllers |
@ -1,40 +1,28 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# Copyright (C) 2012 Agile Business Group sagl (<http://www.agilebg.com>) |
|||
# Copyright (C) 2012 Domsense srl (<http://www.domsense.com>) |
|||
# |
|||
# This program is free software: you can redistribute it and/or modify |
|||
# it under the terms of the GNU Affero General Public License as published |
|||
# by the Free Software Foundation, either version 3 of the License, or |
|||
# (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU Affero General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Affero General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
# Copyright 2016 Henry Zhou (http://www.maxodoo.com) |
|||
# Copyright 2016 Rodney (http://clearcorp.cr/) |
|||
# Copyright 2012 Agile Business Group |
|||
# Copyright 2012 Domsense srl (<http://www.domsense.com>) |
|||
# Copyright 2012 Therp BV |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
|
|||
{ |
|||
'name': 'Export Current View', |
|||
'version': '8.0.1.2.0', |
|||
'name': 'Web Export Current View', |
|||
'version': '10.0.1.0.0', |
|||
'category': 'Web', |
|||
'author': "Agile Business Group,Odoo Community Association (OCA)", |
|||
'author': 'Henry Zhou, Agile Business Group, \ |
|||
Odoo Community Association (OCA)', |
|||
'website': 'http://www.agilebg.com', |
|||
'license': 'AGPL-3', |
|||
'depends': [ |
|||
'web', |
|||
], |
|||
'data': [ |
|||
'view/web_export_view.xml', |
|||
"data": [ |
|||
'views/web_export_view_view.xml', |
|||
], |
|||
'qweb': [ |
|||
'static/src/xml/web_export_view_template.xml', |
|||
"static/src/xml/web_export_view_template.xml", |
|||
], |
|||
'installable': False, |
|||
'installable': True, |
|||
'auto_install': False, |
|||
} |
@ -1,21 +1,3 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# Copyright (C) 2012 Agile Business Group sagl (<http://www.agilebg.com>) |
|||
# Copyright (C) 2012 Domsense srl (<http://www.domsense.com>) |
|||
# |
|||
# This program is free software: you can redistribute it and/or modify |
|||
# it under the terms of the GNU Affero General Public License as published |
|||
# by the Free Software Foundation, either version 3 of the License, or |
|||
# (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU Affero General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Affero General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
|
|||
from . import controllers |
@ -1,44 +0,0 @@ |
|||
# Translation of OpenERP Server. |
|||
# This file contains the translation of the following modules: |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: OpenERP Server 7.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2013-10-21 11:59+0000\n" |
|||
"PO-Revision-Date: 2013-12-07 17:21+0000\n" |
|||
"Last-Translator: Nicolas JEUDY <njeudy@tuxservices.com>\n" |
|||
"Language-Team: \n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: 8bit\n" |
|||
"X-Launchpad-Export-Date: 2014-06-28 06:02+0000\n" |
|||
"X-Generator: Launchpad (build 17077)\n" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/xml/web_advanced_export.xml:7 |
|||
#, python-format |
|||
msgid "Export Current View" |
|||
msgstr "Aktuelle Liste exportieren" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/xml/web_advanced_export.xml:9 |
|||
#, python-format |
|||
msgid "Excel" |
|||
msgstr "Excel" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/src/js/web_advanced_export.js:81 |
|||
#, python-format |
|||
msgid "True" |
|||
msgstr "" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/src/js/web_advanced_export.js:84 |
|||
#, python-format |
|||
msgid "False" |
|||
msgstr "" |
@ -1,46 +0,0 @@ |
|||
# Spanish translation for web-addons |
|||
# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 |
|||
# This file is distributed under the same license as the web-addons package. |
|||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2014. |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: web-addons\n" |
|||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n" |
|||
"POT-Creation-Date: 2013-10-21 11:59+0000\n" |
|||
"PO-Revision-Date: 2014-02-20 23:18+0000\n" |
|||
"Last-Translator: Pedro Manuel Baeza <pedro.baeza@gmail.com>\n" |
|||
"Language-Team: Spanish <es@li.org>\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: 8bit\n" |
|||
"X-Launchpad-Export-Date: 2014-06-28 06:02+0000\n" |
|||
"X-Generator: Launchpad (build 17077)\n" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/xml/web_advanced_export.xml:7 |
|||
#, python-format |
|||
msgid "Export Current View" |
|||
msgstr "Exportar vista actual" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/xml/web_advanced_export.xml:9 |
|||
#, python-format |
|||
msgid "Excel" |
|||
msgstr "Excel" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/src/js/web_advanced_export.js:81 |
|||
#, python-format |
|||
msgid "True" |
|||
msgstr "Verdadero" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/src/js/web_advanced_export.js:84 |
|||
#, python-format |
|||
msgid "False" |
|||
msgstr "Falso" |
@ -1,44 +0,0 @@ |
|||
# Translation of OpenERP Server. |
|||
# This file contains the translation of the following modules: |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: OpenERP Server 7.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2013-10-21 11:59+0000\n" |
|||
"PO-Revision-Date: 2014-03-13 09:06+0000\n" |
|||
"Last-Translator: Sylvain LE GAL (GRAP) <Unknown>\n" |
|||
"Language-Team: \n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: 8bit\n" |
|||
"X-Launchpad-Export-Date: 2014-06-28 06:02+0000\n" |
|||
"X-Generator: Launchpad (build 17077)\n" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/xml/web_advanced_export.xml:7 |
|||
#, python-format |
|||
msgid "Export Current View" |
|||
msgstr "Exporter la vue courante" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/xml/web_advanced_export.xml:9 |
|||
#, python-format |
|||
msgid "Excel" |
|||
msgstr "Excel" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/src/js/web_advanced_export.js:81 |
|||
#, python-format |
|||
msgid "True" |
|||
msgstr "" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/src/js/web_advanced_export.js:84 |
|||
#, python-format |
|||
msgid "False" |
|||
msgstr "" |
@ -1,46 +0,0 @@ |
|||
# Icelandic translation for web-addons |
|||
# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 |
|||
# This file is distributed under the same license as the web-addons package. |
|||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2014. |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: web-addons\n" |
|||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n" |
|||
"POT-Creation-Date: 2013-10-21 11:59+0000\n" |
|||
"PO-Revision-Date: 2014-04-11 08:56+0000\n" |
|||
"Last-Translator: Sveinn í Felli <sv1@fellsnet.is>\n" |
|||
"Language-Team: Icelandic <is@li.org>\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: 8bit\n" |
|||
"X-Launchpad-Export-Date: 2014-06-28 06:02+0000\n" |
|||
"X-Generator: Launchpad (build 17077)\n" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/xml/web_advanced_export.xml:7 |
|||
#, python-format |
|||
msgid "Export Current View" |
|||
msgstr "Flytja út núverandi sýn" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/xml/web_advanced_export.xml:9 |
|||
#, python-format |
|||
msgid "Excel" |
|||
msgstr "Excel" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/src/js/web_advanced_export.js:81 |
|||
#, python-format |
|||
msgid "True" |
|||
msgstr "" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/src/js/web_advanced_export.js:84 |
|||
#, python-format |
|||
msgid "False" |
|||
msgstr "" |
@ -1,44 +0,0 @@ |
|||
# Translation of OpenERP Server. |
|||
# This file contains the translation of the following modules: |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: OpenERP Server 7.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2013-10-21 11:59+0000\n" |
|||
"PO-Revision-Date: 2013-12-07 17:21+0000\n" |
|||
"Last-Translator: Nicolas JEUDY <njeudy@tuxservices.com>\n" |
|||
"Language-Team: \n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: 8bit\n" |
|||
"X-Launchpad-Export-Date: 2014-06-28 06:02+0000\n" |
|||
"X-Generator: Launchpad (build 17077)\n" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/xml/web_advanced_export.xml:7 |
|||
#, python-format |
|||
msgid "Export Current View" |
|||
msgstr "Huidige lijst exporteren" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/xml/web_advanced_export.xml:9 |
|||
#, python-format |
|||
msgid "Excel" |
|||
msgstr "Excel" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/src/js/web_advanced_export.js:81 |
|||
#, python-format |
|||
msgid "True" |
|||
msgstr "" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/src/js/web_advanced_export.js:84 |
|||
#, python-format |
|||
msgid "False" |
|||
msgstr "" |
@ -1,47 +0,0 @@ |
|||
# Translation of OpenERP Server. |
|||
# This file contains the translation of the following modules: |
|||
# |
|||
# Matjaž Mozetič <m.mozetic@matmoz.si>, 2015. |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: OpenERP Server 7.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2013-10-21 11:59+0000\n" |
|||
"PO-Revision-Date: 2015-04-24 08:07+0100\n" |
|||
"Last-Translator: Matjaž Mozetič <m.mozetic@matmoz.si>\n" |
|||
"Language-Team: Slovenian <translate@matmoz.si>\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Plural-Forms: \n" |
|||
"Language: sl\n" |
|||
"X-Generator: Lokalize 2.0\n" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/xml/web_advanced_export.xml:7 |
|||
#, python-format |
|||
msgid "Export Current View" |
|||
msgstr "Izvoz trenutnega pogleda" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/xml/web_advanced_export.xml:9 |
|||
#, python-format |
|||
msgid "Excel" |
|||
msgstr "Excel" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/src/js/web_advanced_export.js:81 |
|||
#, python-format |
|||
msgid "True" |
|||
msgstr "Pravilno" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/src/js/web_advanced_export.js:84 |
|||
#, python-format |
|||
msgid "False" |
|||
msgstr "Nepravilno" |
|||
|
@ -1,43 +0,0 @@ |
|||
# Translation of OpenERP Server. |
|||
# This file contains the translation of the following modules: |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: OpenERP Server 7.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2013-10-21 11:59+0000\n" |
|||
"PO-Revision-Date: 2013-10-21 11:59+0000\n" |
|||
"Last-Translator: <>\n" |
|||
"Language-Team: \n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Plural-Forms: \n" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/xml/web_advanced_export.xml:7 |
|||
#, python-format |
|||
msgid "Export Current View" |
|||
msgstr "" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/xml/web_advanced_export.xml:9 |
|||
#, python-format |
|||
msgid "Excel" |
|||
msgstr "" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/src/js/web_advanced_export.js:81 |
|||
#, python-format |
|||
msgid "True" |
|||
msgstr "" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/src/js/web_advanced_export.js:84 |
|||
#, python-format |
|||
msgid "False" |
|||
msgstr "" |
@ -0,0 +1,38 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * web_export_view |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 10.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2016-11-04 02:11+0000\n" |
|||
"PO-Revision-Date: 2016-11-04 02:11+0000\n" |
|||
"Last-Translator: <>\n" |
|||
"Language-Team: \n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Plural-Forms: \n" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/src/xml/web_export_view_template.xml:6 |
|||
#, python-format |
|||
msgid "Export xls" |
|||
msgstr "导出 xls" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/src/js/web_export_view.js:66 |
|||
#, python-format |
|||
msgid "False" |
|||
msgstr "否" |
|||
|
|||
#. module: web_export_view |
|||
#. openerp-web |
|||
#: code:addons/web_export_view/static/src/js/web_export_view.js:63 |
|||
#, python-format |
|||
msgid "True" |
|||
msgstr "是" |
|||
|
@ -1,12 +1,11 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
|
|||
<templates id="template" xml:space="preserve"> |
|||
<t t-name="AddExportViewMain"> |
|||
<div class="oe_form_dropdown_section"> |
|||
<button class="oe_dropdown_toggle oe_dropdown_arrow">Export Current View</button> |
|||
<ul class="oe_dropdown_menu"> |
|||
<li class="oe_sidebar_export_view_xls"><span>Excel</span></li> |
|||
</ul> |
|||
<t t-name="WebExportTreeViewXls"> |
|||
<div class="o_cp_sidebar btn-group btn-group-sm"> |
|||
<button class="btn btn-default export_treeview_xls" type="button" title="Export xls"> |
|||
<i t-translation="off" class="fa fa-file-excel-o"></i> |
|||
</button> |
|||
</div> |
|||
</t> |
|||
</templates> |
@ -1,11 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
|
|||
<openerp> |
|||
<data> |
|||
<template id="assets_backend" name="web_export_view assets" inherit_id="web.assets_backend"> |
|||
<xpath expr="." position="inside"> |
|||
<script type="text/javascript" src="/web_export_view/static/src/js/web_export_view.js"></script> |
|||
</xpath> |
|||
</template> |
|||
</data> |
|||
</openerp> |
@ -0,0 +1,9 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
|
|||
<odoo> |
|||
<template id="assets_backend" name="web_export_view assets" inherit_id="web.assets_backend"> |
|||
<xpath expr="." position="inside"> |
|||
<script type="text/javascript" src="/web_export_view/static/src/js/web_export_view.js"></script> |
|||
</xpath> |
|||
</template> |
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue