Browse Source

[MIG] web_list_html_widget to 8.0

pull/959/head
kiplangatdan 6 years ago
committed by Holger Brunn
parent
commit
89ad905cd6
  1. 38
      web_list_html_widget/README.rst
  2. 21
      web_list_html_widget/__init__.py
  3. 51
      web_list_html_widget/__openerp__.py
  4. 16
      web_list_html_widget/i18n/web_list_html_widget.pot
  5. BIN
      web_list_html_widget/static/description/icon.png
  6. 10
      web_list_html_widget/views/web_list_html_widget.xml

38
web_list_html_widget/README.rst

@ -0,0 +1,38 @@
HTML widget for list/tree views
===============================
This module allows to use a widget="html" for fields in list(tree) views.
Known issues / Roadmap
======================
* The content of the field will be rendered without HTML escaping and without
any other security measure.
Credits
=======
Contributors
------------
* Thomas Rehn <thomas.rehn at initos.com>
* Dan Kiplangat <dan@sunflowerweb.nl>
Image
-----
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
Maintainer
----------
.. image:: http://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: http://odoo-community.org
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
To contribute to this module, please visit http://odoo-community.org.

21
web_list_html_widget/__init__.py

@ -1,20 +1,3 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2014 initOS GmbH & Co. KG (<http://www.initos.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 (C) 2018 initOS GmbH & Co. KG (<http://www.initos.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

51
web_list_html_widget/__openerp__.py

@ -1,44 +1,19 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2010-2013 OpenERP s.a. (<http://openerp.com>).
# Copyright (C) 2014 initOS GmbH & Co. KG (<http://www.initos.com>).
# Author Thomas Rehn <thomas.rehn at initos.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 (C) 2014 initOS GmbH & Co. KG (<http://www.initos.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "HTML widget for list/tree views",
"version": "0.1",
"version": "8.0.1.0.0",
"depends": ["web"],
'author': "initOS GmbH & Co. KG,Odoo Community Association (OCA)",
"category": "",
'license': 'AGPL-3',
"description": """This module allows to use a widget="html" for fields in
list(tree) views.
*WARNING* The content of the field will be rendered without HTML escaping and
without any other security measure.""",
'data': [
'author': "initOS GmbH & Co. KG, Sunflower IT, "
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/web",
"category": "Web",
"license": "AGPL-3",
"summary": "This module allows to use a widget='html' for fields in list "
"(tree) views",
"data": [
'views/web_list_html_widget.xml',
],
'demo': [
],
'test': [
],
'js': ['static/src/js/view_list.js'],
'installable': True,
'auto_install': False,
"installable": True
}

16
web_list_html_widget/i18n/web_list_html_widget.pot

@ -1,16 +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: 2014-10-25 14:09+0000\n"
"PO-Revision-Date: 2014-10-25 16:10+0100\n"
"Last-Translator: M\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"

BIN
web_list_html_widget/static/description/icon.png

After

Width: 128  |  Height: 128  |  Size: 9.2 KiB

10
web_list_html_widget/views/web_list_html_widget.xml

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="assets_ext" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript" src="/web_list_html_widget/static/src/js/view_list.js"></script>
</xpath>
</template>
</data>
</openerp>
Loading…
Cancel
Save