Browse Source

[MIG] web_searchbar_full_width : migrate to v9.0

pull/337/head
Siddharth Bhalgami 8 years ago
parent
commit
292430310e
  1. 1
      web_searchbar_full_width/README.rst
  2. 17
      web_searchbar_full_width/__openerp__.py
  3. BIN
      web_searchbar_full_width/static/description/icon.png
  4. BIN
      web_searchbar_full_width/static/description/preview.png
  5. 22
      web_searchbar_full_width/static/src/css/web_searchbar_full_width.css
  6. 15
      web_searchbar_full_width/static/src/xml/web_searchbar_full_width.xml
  7. 16
      web_searchbar_full_width/views/templates.xml

1
web_searchbar_full_width/README.rst

@ -25,6 +25,7 @@ Contributors
------------
* Holger Brunn <hbrunn@therp.nl>
* Siddharth Bhalgami <siddharth.bhalgami@gmail.com>
Maintainer
----------

17
web_searchbar_full_width/__openerp__.py

@ -20,9 +20,10 @@
##############################################################################
{
"name": "Full width searchbar",
"version": "8.0.1.0.0",
"version": "9.0.1.0.0",
"author": "Therp BV, "
"Odoo Community Association (OCA)",
"Odoo Community Association (OCA), "
"Siddharth Bhalgami",
"license": "AGPL-3",
"category": "Tools",
"summary": "Show search bar in full screen width",
@ -32,15 +33,5 @@
"data": [
'views/templates.xml',
],
"qweb": [
'static/src/xml/web_searchbar_full_width.xml',
],
"test": [
],
"auto_install": False,
'installable': False,
"application": False,
"external_dependencies": {
'python': [],
},
'installable': True,
}

BIN
web_searchbar_full_width/static/description/icon.png

Before

Width: 110  |  Height: 110  |  Size: 6.8 KiB

After

Width: 128  |  Height: 110  |  Size: 5.1 KiB

BIN
web_searchbar_full_width/static/description/preview.png

Before

Width: 1914  |  Height: 466  |  Size: 50 KiB

After

Width: 1312  |  Height: 406  |  Size: 44 KiB

22
web_searchbar_full_width/static/src/css/web_searchbar_full_width.css

@ -1,20 +1,8 @@
.openerp .oe_application .oe_breadcrumb_item:not(:last-child)
{
max-width: inherit;
}
.openerp .oe_searchview
{
.openerp .oe-control-panel .oe-cp-title {
width: 100%;
}
.openerp .oe_view_manager_current > .oe_view_manager_header .oe_header_row_top td
{
padding-bottom: 0px;
}
.openerp .oe_view_manager_current > .oe_view_manager_header span.oe_breadcrumb_item
{
padding-top: 3px;
}
.openerp .oe_view_manager table.oe_view_manager_header h2
{
line-height: 20px;
.openerp .oe-control-panel .oe-cp-search-view {
padding-top: 0px;
padding-bottom: 3px;
width: 100%;
}

15
web_searchbar_full_width/static/src/xml/web_searchbar_full_width.xml

@ -1,15 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates>
<t t-extend="ViewManagerAction">
<t t-jquery="tr.oe_header_row_top td:nth-child(1)">
jQuery(this).attr('colspan', 4);
</t>
<t t-jquery="tr.oe_header_row_top td:nth-child(2)">
var $new_row = jQuery('<tr class="oe_header_row"/>');
jQuery(this)
.parents('tr')
.after($new_row);
$new_row.append(jQuery(this).attr('colspan', 4));
</t>
</t>
</templates>

16
web_searchbar_full_width/views/templates.xml

@ -1,10 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<template id="assets_backend" name="web_searchbar_full_width assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/web_searchbar_full_width/static/src/css/web_searchbar_full_width.css"/>
</xpath>
</template>
</data>
</openerp>
<odoo>
<template id="assets_backend" name="web_searchbar_full_width assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/web_searchbar_full_width/static/src/css/web_searchbar_full_width.css"/>
</xpath>
</template>
</odoo>
Loading…
Cancel
Save