From be54ab8998b7263862e14e79c59b8dd4ed1b15bc Mon Sep 17 00:00:00 2001 From: Sandy Carter Date: Thu, 15 Jan 2015 15:19:19 -0500 Subject: [PATCH] Add option to see original error in odoo --- sentry_logger/__openerp__.py | 6 ++- .../static/src/css/sentry_logger.css | 48 +++++++++++++++++++ sentry_logger/static/src/xml/base.xml | 8 ++++ 3 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 sentry_logger/static/src/css/sentry_logger.css diff --git a/sentry_logger/__openerp__.py b/sentry_logger/__openerp__.py index 4b00e3341..77a92db0e 100644 --- a/sentry_logger/__openerp__.py +++ b/sentry_logger/__openerp__.py @@ -62,7 +62,7 @@ Contributors # Categories can be used to filter modules in modules listing # Check /addons/base/module/module_data.xml of the full list 'category': 'Extra Tools', - 'version': '1.0', + 'version': '1.1', # any module necessary for this one to work correctly 'depends': ['web'], @@ -83,6 +83,10 @@ Contributors 'static/src/xml/base.xml', ], + 'css': [ + 'static/src/css/sentry_logger.css', + ], + 'tests': [ ], } diff --git a/sentry_logger/static/src/css/sentry_logger.css b/sentry_logger/static/src/css/sentry_logger.css new file mode 100644 index 000000000..b001125dc --- /dev/null +++ b/sentry_logger/static/src/css/sentry_logger.css @@ -0,0 +1,48 @@ +.error_details { + display:none; + height:auto; + margin:0; + float: left; +} +.show { + display: none; +} +.hide:target + .show { + display: inline; +} +.hide:target { + display: none; +} +.hide:target ~ .error_details { + display:inline; +} + + +/*style the (+) and (-) */ +.hide, .show { + width: 20px; + height: 20px; + border-radius: 20px; + font-size: 20px; + color: #fff; + text-align: center; + box-shadow: 1px 1px 2px #000; + background: #dddddd; + margin-top: 10px; + margin-right: 10px; + float: left; +} + +.hide:hover, .show:hover { + color: #eee; + text-shadow: 0 0 1px #666; + text-decoration: none; + box-shadow: 0 0 4px #222 inset; + opacity: 1; + +} + +.error_details p{ + height:auto; + margin:0; +} diff --git a/sentry_logger/static/src/xml/base.xml b/sentry_logger/static/src/xml/base.xml index ac7ec8cd8..83df35bee 100644 --- a/sentry_logger/static/src/xml/base.xml +++ b/sentry_logger/static/src/xml/base.xml @@ -10,6 +10,14 @@
A detailed report has been sent to the technical support team.
+ + + - +

Details

+
+
+
+
+