From 2140046f2b265018dc0a10371ea1a7d45f92cf27 Mon Sep 17 00:00:00 2001 From: "Jonathan Nemry (ACSONE)" Date: Thu, 1 Oct 2015 18:16:38 +0200 Subject: [PATCH] [CHG] Code review * Improve .rst * user_strict into js * review Authors --- web_readonly_bypass/README.rst | 19 ++++------- web_readonly_bypass/__openerp__.py | 32 +++++++++++-------- .../static/src/js/readonly_bypass.js | 3 +- 3 files changed, 26 insertions(+), 28 deletions(-) diff --git a/web_readonly_bypass/README.rst b/web_readonly_bypass/README.rst index 8bd216ff..01735766 100644 --- a/web_readonly_bypass/README.rst +++ b/web_readonly_bypass/README.rst @@ -1,6 +1,8 @@ .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :alt: License: AGPL-3 + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +================ Read Only ByPass ================ @@ -13,16 +15,6 @@ passed to write or create. If `readonly_by_pass` is in the context and True then it will by pass readonly fields and save its data provide by onchange method. -Installation -============ - -There are no specific installation instructions for this module. - -Configuration -============= - -There is nothing to configure. - Usage ===== @@ -48,8 +40,9 @@ For further information, please visit: * https://www.odoo.com/forum/help-1 -Known issues / Roadmap -====================== +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/162/8.0 Bug Tracker diff --git a/web_readonly_bypass/__openerp__.py b/web_readonly_bypass/__openerp__.py index d54969d7..10f0098f 100644 --- a/web_readonly_bypass/__openerp__.py +++ b/web_readonly_bypass/__openerp__.py @@ -1,27 +1,31 @@ # -*- coding: utf-8 -*- ############################################################################## # -# Authors: Nemry Jonathan & Laetitia Gangloff -# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) +# This file is part of web_readonly_bypass, +# an Odoo module. # -# 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. +# Copyright (c) 2015 ACSONE SA/NV () # -# 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. +# web_readonly_bypass 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. # -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# web_readonly_bypass 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 web_readonly_bypass. +# If not, see . # ############################################################################## { 'name': 'Read Only ByPass', - 'version': '1.0', - "author": "ACSONE SA/NV", + 'version': '8.0.1.0.0', + "author": "ACSONE SA/NV, Odoo Community Association (OCA)", "maintainer": "ACSONE SA/NV,Odoo Community Association (OCA)", "website": "http://www.acsone.eu", 'category': 'Technical Settings', diff --git a/web_readonly_bypass/static/src/js/readonly_bypass.js b/web_readonly_bypass/static/src/js/readonly_bypass.js index 691121c0..ea3f460e 100644 --- a/web_readonly_bypass/static/src/js/readonly_bypass.js +++ b/web_readonly_bypass/static/src/js/readonly_bypass.js @@ -1,3 +1,4 @@ +"use strict"; (function(){ var instance = openerp; var QWeb = instance.web.qweb, _t = instance.web._t; @@ -58,7 +59,7 @@ }, }; - readonly_bypass = instance.web_readonly_bypass; + var readonly_bypass = instance.web_readonly_bypass; instance.web.BufferedDataSet.include({