3
0
Fork 0

[CHG] Code review

* Improve .rst
* user_strict into js
* review Authors
9.0
Jonathan Nemry (ACSONE) 2015-10-01 18:16:38 +02:00
parent 2c53d071c7
commit 2140046f2b
3 changed files with 26 additions and 28 deletions

View File

@ -1,6 +1,8 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg .. 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 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 True then it will by pass readonly fields and save its data provide by onchange
method. method.
Installation
============
There are no specific installation instructions for this module.
Configuration
=============
There is nothing to configure.
Usage Usage
===== =====
@ -48,8 +40,9 @@ For further information, please visit:
* https://www.odoo.com/forum/help-1 * 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 Bug Tracker

View File

@ -1,27 +1,31 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# Authors: Nemry Jonathan & Laetitia Gangloff # This file is part of web_readonly_bypass,
# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) # an Odoo module.
# #
# This program is free software: you can redistribute it and/or modify # Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>)
# 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, # web_readonly_bypass is free software:
# but WITHOUT ANY WARRANTY; without even the implied warranty of # you can redistribute it and/or modify it under the terms of the GNU
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # Affero General Public License as published by the Free Software
# GNU Affero General Public License for more details. # 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 # web_readonly_bypass is distributed
# along with this program. If not, see <http://www.gnu.org/licenses/>. # 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 <http://www.gnu.org/licenses/>.
# #
############################################################################## ##############################################################################
{ {
'name': 'Read Only ByPass', 'name': 'Read Only ByPass',
'version': '1.0', 'version': '8.0.1.0.0',
"author": "ACSONE SA/NV", "author": "ACSONE SA/NV, Odoo Community Association (OCA)",
"maintainer": "ACSONE SA/NV,Odoo Community Association (OCA)", "maintainer": "ACSONE SA/NV,Odoo Community Association (OCA)",
"website": "http://www.acsone.eu", "website": "http://www.acsone.eu",
'category': 'Technical Settings', 'category': 'Technical Settings',

View File

@ -1,3 +1,4 @@
"use strict";
(function(){ (function(){
var instance = openerp; var instance = openerp;
var QWeb = instance.web.qweb, _t = instance.web._t; 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({ instance.web.BufferedDataSet.include({