Browse Source

[MIG][10.0] web_readonly_bypass

pull/743/head
Kalpana Hemnani 8 years ago
committed by Simone Orsi
parent
commit
112290d9b1
  1. 6
      web_readonly_bypass/README.rst
  2. 32
      web_readonly_bypass/__manifest__.py
  3. 3
      web_readonly_bypass/views/readonly_bypass.xml

6
web_readonly_bypass/README.rst

@ -22,7 +22,7 @@ This module changes the behaviour of Odoo by propagating
on_change modifications to readonly fields to the backend create and write on_change modifications to readonly fields to the backend create and write
methods. methods.
To change that behavior you have to set context on ``ur.actions.act_window``::
To change that behavior you have to set context on ``ir.actions.act_window``::
<record id="sale.action_quotations" model="ir.actions.act_window"> <record id="sale.action_quotations" model="ir.actions.act_window">
<field name="context">{'readonly_by_pass': True}</field> <field name="context">{'readonly_by_pass': True}</field>
@ -42,7 +42,7 @@ For further information, please visit:
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot :alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/162/8.0
:target: https://runbot.odoo-community.org/runbot/162/10.0
Bug Tracker Bug Tracker
@ -51,7 +51,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_. Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
In case of trouble, please check there if your issue has already been reported. In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
`here <https://github.com/OCA/web/issues/new?body=module:%20web_readonly_bypass%0Aversion:%208.0.1.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`here <https://github.com/OCA/web/issues/new?body=module:%20web_readonly_bypass%0Aversion:%2010.1.0.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Credits Credits

32
web_readonly_bypass/__manifest__.py

@ -1,33 +1,13 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
##############################################################################
#
# This file is part of web_readonly_bypass,
# an Odoo module.
#
# Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>) # Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>)
#
# 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
# along with web_readonly_bypass.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
{ {
'name': 'Read Only ByPass', 'name': 'Read Only ByPass',
'version': '9.0.1.0.0',
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
"maintainer": "ACSONE SA/NV,Odoo Community Association (OCA)",
'version': '10.0.1.0.0',
"author": "ACSONE SA/NV,Kalpana Hemnani,Odoo Community Association (OCA)",
"website": "http://www.acsone.eu", "website": "http://www.acsone.eu",
"license": "LGPL-3",
'category': 'Technical Settings', 'category': 'Technical Settings',
'depends': [ 'depends': [
'web', 'web',
@ -36,6 +16,6 @@
'data': [ 'data': [
'views/readonly_bypass.xml', 'views/readonly_bypass.xml',
], ],
'installable': False,
'installable': True,
'auto_install': False, 'auto_install': False,
} }

3
web_readonly_bypass/views/readonly_bypass.xml

@ -6,8 +6,9 @@
<script type="text/javascript" src="/web_readonly_bypass/static/src/js/readonly_bypass.js"></script> <script type="text/javascript" src="/web_readonly_bypass/static/src/js/readonly_bypass.js"></script>
</xpath> </xpath>
</template> </template>
<template id="qunit_suite" name="web_readonly_bypass" inherit_id="web.qunit_suite"> <template id="qunit_suite" name="web_readonly_bypass" inherit_id="web.qunit_suite">
<xpath expr="//head" position="inside">
<xpath expr="//t[@t-set='head']" position="inside">
<script type="text/javascript" src="/web_readonly_bypass/static/test/web_readonly_bypass.js"></script> <script type="text/javascript" src="/web_readonly_bypass/static/test/web_readonly_bypass.js"></script>
</xpath> </xpath>
</template> </template>

Loading…
Cancel
Save