Browse Source
Merge pull request #743 from simahawk/mig-10-web_readonly_bypass
Merge pull request #743 from simahawk/mig-10-web_readonly_bypass
[MIG][10.0] web_readonly_bypasspull/763/head
Pedro M. Baeza
7 years ago
committed by
GitHub
7 changed files with 264 additions and 227 deletions
-
15web_readonly_bypass/README.rst
-
30web_readonly_bypass/__manifest__.py
-
73web_readonly_bypass/static/src/js/readonly_bypass.js
-
86web_readonly_bypass/static/test/web_readonly_bypass.js
-
1web_readonly_bypass/tests/__init__.py
-
15web_readonly_bypass/tests/test_ui.py
-
9web_readonly_bypass/views/readonly_bypass.xml
@ -0,0 +1 @@ |
|||
from . import test_ui |
@ -0,0 +1,15 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright (c) 2017 Simone Orsi <simone.orsi@camptocamp.com> |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
|
|||
from odoo.tests import HttpCase |
|||
|
|||
|
|||
class TestUi(HttpCase): |
|||
|
|||
def test_ui_web(self): |
|||
self.phantom_js( |
|||
"/web/tests?module=web_readonly_bypass", |
|||
"", |
|||
login="admin", |
|||
) |
@ -1,15 +1,14 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
<odoo> |
|||
<template id="assets_backend" name="web_readonly_bypass" inherit_id="web.assets_backend"> |
|||
<xpath expr="." position="inside"> |
|||
<script type="text/javascript" src="/web_readonly_bypass/static/src/js/readonly_bypass.js"></script> |
|||
</xpath> |
|||
</template> |
|||
|
|||
<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> |
|||
</xpath> |
|||
</template> |
|||
</data> |
|||
</openerp> |
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue