Browse Source

[CHG] Code review

* Improve .rst
* user_strict into js
* review Authors
pull/162/head
Jonathan Nemry (ACSONE) 9 years ago
parent
commit
2140046f2b
  1. 17
      web_readonly_bypass/README.rst
  2. 30
      web_readonly_bypass/__openerp__.py
  3. 3
      web_readonly_bypass/static/src/js/readonly_bypass.js

17
web_readonly_bypass/README.rst

@ -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
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3 :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

30
web_readonly_bypass/__openerp__.py

@ -1,27 +1,31 @@
# -*- coding: utf-8 -*- # -*- 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 (<http://acsone.eu>)
# #
# 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.
#
# 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 # 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/>.
# along with web_readonly_bypass.
# If not, see <http://www.gnu.org/licenses/>.
# #
############################################################################## ##############################################################################
{ {
'name': 'Read Only ByPass', '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)", "maintainer": "ACSONE SA/NV,Odoo Community Association (OCA)",
"website": "http://www.acsone.eu", "website": "http://www.acsone.eu",
'category': 'Technical Settings', 'category': 'Technical Settings',

3
web_readonly_bypass/static/src/js/readonly_bypass.js

@ -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({

Loading…
Cancel
Save