Parcourir la source

commit inicial

Deisy il y a 8 ans
commit
580dac4bec
5 fichiers modifiés avec 189 ajouts et 0 suppressions
  1. 1 0
      __init__.py
  2. BIN
      __init__.pyc
  3. 10 0
      __openerp__.py
  4. 12 0
      padding.xml
  5. 166 0
      static/src/css/padding_graph.css

+ 1 - 0
__init__.py

@@ -0,0 +1 @@
+# -*- coding:utf-8 -*-

BIN
__init__.pyc


+ 10 - 0
__openerp__.py

@@ -0,0 +1,10 @@
+# -*- coding:utf-8 -*-
+
+{
+'name':'Padding Graph',
+'description':'Agrega padding a la vista graph',
+'author':'Deisy',
+'depends':['web_graph'],
+'data':['padding.xml'],
+'application':True,
+}

+ 12 - 0
padding.xml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- vim:fdn=3:
+-->
+<openerp>
+    <data>
+        <template id="assets_backend" name="padding_graph assets" inherit_id="web_graph.assets_backend">
+            <xpath expr="." position="inside">
+                <link rel="stylesheet" href="/padding_graph/static/src/css/padding_graph.css"/>
+            </xpath>
+        </template>
+    </data>
+</openerp>

+ 166 - 0
static/src/css/padding_graph.css

@@ -0,0 +1,166 @@
+/*
+This is a hack for IE9 ...
+Attrs : width and height are not take in consideration
+*/
+.openerp svg:not(:root) {
+   overflow: visible;
+}
+
+.graph_pivot_mode {
+   position:initial;
+}
+
+.graph_chart_mode {
+   position:relative;
+}
+
+.graph_main_content td {
+   font-size: 12px;
+   margin: 45px;
+   border-collapse: collapse;
+   vertical-align: middle;
+   border-bottom: 1px solid #ccc;
+   padding: 6px 8px;
+   text-align: right;
+   color: black;
+}
+
+.graph_main_content td:first-child {
+ background-color: rgb(240, 238, 238);
+}
+
+.graph_main_content table {
+ margin-top: 10px;
+}
+
+.graph_measure_selection .oe_selected {
+ padding-left: 0;
+}
+
+.graph_measure_selection .oe_selected:before {
+ content: "\f00c";
+ width: 20px;
+ display: inline-block;
+ font-family: FontAwesome;
+}
+
+.graph_measure_selection li {
+ margin-left: 5px;
+}
+
+.graph_main_content th {
+   font-size: 13px;
+   font-weight: normal;
+   padding: 10px 8px;
+   vertical-align: top;
+   color: black;
+}
+
+.graph_main_content tbody td{
+ border: 1px solid #b8b8b8;
+}
+
+.graph_main_content tbody {
+ border-top: 1px solid black;
+}
+
+.graph_main_content thead {
+ background-color: rgb(240, 238, 238);
+ border: 1px solid #b8b8b8;
+}
+
+.graph_main_content thead th {
+ border-left: 1px solid #b8b8b8;
+}
+
+div.graph_widget {
+ padding:10px;
+ padding-left: 6%;
+
+}
+
+.oe_dashboard div.graph_widget {
+ padding:0;
+}
+
+td.graph_border {
+ text-align: left;
+ white-space: nowrap;
+}
+
+.graph_main_content table:not(.heatmap) tr:hover td:not(:first-child)
+{
+ background-color: rgb(245, 245, 245);
+}
+
+span.field-selection {
+ display: none;
+ padding: 0;
+}
+
+.web_graph_click:hover {
+   cursor: pointer;
+}
+
+.graph_widget .dropdown-menu {
+ font-size: 13px;
+ padding: 4px 0;
+ background: #e8e8e8 !important;
+ border: 1px solid rgba(0, 0, 0, 0.15);
+ font-color: !important black;
+ text-shadow: none;
+ background-color: #e8e8e8;
+ -moz-border-radius: 3px;
+ -webkit-border-radius: 3px;
+ border-radius: 3px;
+}
+
+
+.graph_widget .dropdown-menu li a, .graph_widget .dropdown-menu li a:hover, .graph_widget .dropdown-menu li a:focus {
+ color: black;
+ text-decoration: none;
+}
+
+th.measure_row {
+ color: black;
+ font-size: 12px;
+ padding:0px 5px 0px 5px ;
+ margin:0;
+}
+
+
+.graph-dropdown-submenu {
+   position: relative;
+}
+
+.graph-dropdown-submenu>.dropdown-menu {
+   top: 0;
+   left: 100%;
+   margin-top: -6px;
+   margin-left: -1px;
+   -webkit-border-radius: 0 6px 6px 6px;
+   -moz-border-radius: 0 6px 6px;
+   border-radius: 0 6px 6px 6px;
+}
+
+.graph-dropdown-submenu:hover>.dropdown-menu {
+   display: block;
+}
+
+.graph-dropdown-submenu>a:after {
+   display: block;
+   content: " ";
+   float: right;
+   width: 0;
+   height: 0;
+   border-color: transparent;
+   border-style: solid;
+   border-width: 5px 0 5px 5px;
+   border-left-color: #ccc;
+   margin-top: 5px;
+   margin-right: -10px;
+}
+
+.graph-dropdown-submenu:hover>a:after {
+   border-left-color: #fff;
+}